This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/46097] Switch to warn of global variables in a C++ shared object


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

--- Comment #33 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Write a plugin. It's trivial using gcc-python-plugin, see
http://blog.cuviper.com/2014/01/23/add-new-warnings-to-gcc-with-python/

A custom plugin is far more suitable to your purpose than adding yet another
option to GCC that has to be maintained and tested forever when most people
aren't interested in it.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]