Re: consider -Wmissing-variable-declarations
Peter Eisentraut <peter@eisentraut.org>
Attachments
- v2-0001-Add-Wmissing-variable-declarations-to-the-standar.patch (text/plain) patch v2-0001
- v2-0002-Convert-some-extern-variables-to-static.patch (text/plain) patch v2-0002
- v2-0003-Add-missing-includes.patch (text/plain) patch v2-0003
- v2-0004-Improve-some-global-variable-declarations.patch (text/plain) patch v2-0004
- v2-0005-Fix-warnings-from-Wmissing-variable-declarations-.patch (text/plain) patch v2-0005
- v2-0006-Get-rid-of-a-global-variable.patch (text/plain) patch v2-0006
- v2-0007-Fix-Wmissing-variable-declarations-warnings-for-G.patch (text/plain) patch v2-0007
- v2-0008-Remove-useless-extern-keywords.patch (text/plain) patch v2-0008
- v2-0009-Fix-Wmissing-variable-declarations-warnings-for-f.patch (text/plain) patch v2-0009
- v2-0010-Fix-Wmissing-variable-declarations-warnings-in-bi.patch (text/plain) patch v2-0010
Here is an updated patch set. I have implemented proper solutions for the various hacks in the previous patch set. So this patch set should now be ready for proper consideration. The way I have organized it here is that patches 0002 through 0008 should be improvements in their own right. The remaining two patches 0009 and 0010 are workarounds that are just necessary to satisfy -Wmissing-variable-declarations. I haven't made up my mind if I'd want to take the bison patch 0010 like this and undo it later if we move to pure parsers everywhere, or instead wait for the pure parsers to arrive before we install -Wmissing-variable-declarations for everyone. Obviously, people might also have opinions on some details of where exactly to put the declarations etc. I have tried to follow existing patterns as much as possible, but those are also not necessarily great in all cases.
Commits
-
Use CXXFLAGS instead of CFLAGS for linking C++ code
- b9f7ceabd820 16.14 landed
- b6b7e96365eb 17.10 landed
- 41d75b9a4a1c 15.18 landed
- 231570d33581 14.23 landed
- 365b5a345b26 18.0 landed
-
Add -Wmissing-variable-declarations to the standard compilation flags
- 66188912566b 18.0 landed
-
Include bison header files into implementation files
- 9fb855fe1ae0 18.0 landed
-
Fix -Wmissing-variable-declarations warnings for float.c special case
- 37c6923cf3d8 18.0 landed
-
Add extern declarations for Bison global variables
- ab61c40bfa2b 18.0 landed
-
Move all extern declarations for GUC variables to header files
- 774d47b6c01a 18.0 landed
-
Move extern declarations for EXEC_BACKEND to header files
- d3cc5ffe81f6 18.0 landed
-
Get rid of a global variable
- 935e675f3c9e 18.0 landed
-
Add missing includes for some global variables
- 881455e57b12 18.0 landed
-
Convert some extern variables to static
- 720b0eaae9b8 18.0 landed
-
Improve some global variable declarations
- 8f8bcb88833e 18.0 landed
-
Remove useless extern keywords
- 3fb59e789dd9 18.0 landed