GNOME Bugzilla – Bug 616356
Change SCOPE_TYPE_INVALID handling to be a warning and not an error
Last modified: 2010-04-26 16:28:29 UTC
J5 hit this today because he typed "notify" instead of "notified" and I guess was a bit miffed that 1) the code segv'd for it and 2) that the code didn't immediatly point him in the direction of his annotation. This fixes both issues. In reality though the scanner should probably bail out on an invalid scope type. Filed bug 616355 to fix the scanner.
Created attachment 159223 [details] [review] Change SCOPE_TYPE_INVALID handling to be a warning and not an error Be slightly nicer to library maintainers. It really isn't a fatal condition if we don't have a proper scope type, better to leave a good code comment and a warning than to cause their code to segv.
Review of attachment 159223 [details] [review]: I'm not sure if sigsegving is the major issue here, or rather the lack of a message properly explaining what happened.
Yeah, I think it's okay to have a fatal warning, invalid scopes should be fixed, not worked around.
Created attachment 159525 [details] [review] Change SCOPE_TYPE_INVALID handling to be a more verbose error.
Review of attachment 159525 [details] [review]: Great, though maybe we could give some more context such as the function where it happened? Just an idea.
Pushed.