https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46097

Phil Miller <unmobile at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |unmobile at gmail dot com

--- Comment #32 from Phil Miller <unmobile at gmail dot com> ---
A switch to generate warnings about global variables would be useful to me and
my colleagues (http://ppl.cs.illinois.edu/) for a reason totally distinct from
ODR violations. We have a parallel programming system that includes a feature
for running application code in multiple, nominally independent, user-level
threads within a process. A mechanism to call attention to code that may fail
or misbehave in this setting would be helpful.

I would definitely agree that this doesn't belong in -Wall or -Wextra, as such.
So a -fnote-global-variables might be more appropriate.

Reply via email to