Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#13 Remove E_FUNC_NO_CODE

closed-accepted
Maarten Brock
None
5
2007-04-08
2004-01-29
Stas Sergeev
No

Hi.

Are there any reasons for the E_FUNC_NO_CODE message?
When dozens of that messages makes the real error
message to be "scrolled away" from the screen, I can
tolerate that by doing 2>&1|more. But here is a person
who uses sdcc under windows. He got really mad about
that message: he have to use --use-stdout option and
redirect the messages to the file in order to be able
to see the real error message after E_FUNC_NO_CODE
trashes the screen.
I think it should be removed - patch attached.
Or are there any real reasons to keep that message
alive?

Discussion

  • Stas Sergeev
    Stas Sergeev
    2004-01-29

    Kill stupid message, please

     
    Attachments
  • Maarten Brock
    Maarten Brock
    2007-03-28

    Logged In: YES
    user_id=888171
    Originator: NO

    I would like to close this patch but feel uneasy to remove the error alltogether. I think the user should be warned of a situation like this. So I propose exactly that as the solution: to throw a warning instead of an error.

    How is that a solution to blurring the screen you might ask. As opposed to errors you can suppress warnings with a pragma or a command line option.

    Comments are welcome,
    Maarten

     
  • Stas Sergeev
    Stas Sergeev
    2007-03-28

    Logged In: YES
    user_id=501371
    Originator: YES

    But AFAICS this error is always a consequence
    of another "real" error.
    I probably misunderstand, but could you please
    explain, what exactly it is supposed to warn
    the user about? If you already have a compilation
    error, then I think it is rather obvious that
    the code is not generated for the rest of the
    functions. And so this error looks just a crap
    to me. Even if it would generate the code for
    the rest of the functions, what would you do
    with it?
    What am I missing?

     
  • Maarten Brock
    Maarten Brock
    2007-04-08

    Logged In: YES
    user_id=888171
    Originator: NO

    I asked about this on the user and developer mailing list and only two developers responded, both agreeing with Stas. Ergo the patch is applied and the error removed in SDCC 2.6.5 #4735

     
  • Maarten Brock
    Maarten Brock
    2007-04-08

    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-accepted