Peter N Lewis wrote:
I always prefer to get my code compiling with -Wall without warnings if at all possible. But it seems to be that the capitalisation warning is a little over the top:
I've replied to this a few times already, but again, it's about identifiers not declarations.
Is this a limitation in the way GPC handles identifiers (perhaps in the hash table or some such), or is this a deliberate design decision?
In a way, both. Applying it to declarations seems to be more work (though not impossible). Also, I myself prefer it for identifiers globally. I.e., when I care about matching capitalisation at all, I like to have it the same everywhere rather than calling the same identifier differently in different routines etc.
If you want to implement it for declarations, just go ahead, but make it optional (i.e., allow the existing behaviour as well).
Frank