Added more compile warning options
Subsystems (2)
PATCH 1/1 Added more compile warning options
To ensure the code compiles cleaner, the following warning options are now set
-Wall -Wextra -Wstrict-prototypes -Wstrict-aliasing -Wconversion -Wsign-conversion -Wmissing-prototypes -Wsign-conversion -pedantic -Wmissing-prototypes
--- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
configure.ac +5 -1
@@ -448,7 +448,11 @@ case $host in ARCHFLAGS="" ;; esac -my_am_cflags="-Wall -Wextra -Wstrict-prototypes $ARCHFLAGS -pipe" +WFLAGS="-Wall -Wextra -Wstrict-prototypes -Wstrict-aliasing \ + -Wconversion -Wsign-conversion -Wmissing-prototypes \ + -Wsign-conversion -pedantic -Wmissing-prototypes" + +my_am_cflags="$WFLAGS $ARCHFLAGS -pipe" AC_SUBST([AM_CFLAGS], ["$my_am_cflags"])
Signature · 1 line
1.7.11.7
Steve Dickson wrote:
To ensure the code compiles cleaner, the following warning options are now set
-Wall -Wextra -Wstrict-prototypes -Wstrict-aliasing -Wconversion -Wsign-conversion -Wmissing-prototypes -Wsign-conversion -pedantic -Wmissing-prototypes
You only need to specify them once. You've got sign-conversion and missing-prototypes twice. Also I think -pedantic is going too far.
Hey Jim,
Quoted 10 lines · Jim Rees
Steve Dickson wrote:
To ensure the code compiles cleaner, the following warning options are now set
-Wall -Wextra -Wstrict-prototypes -Wstrict-aliasing -Wconversion -Wsign-conversion -Wmissing-prototypes -Wsign-conversion -pedantic -Wmissing-prototypesYou only need to specify them once. You've got sign-conversion and missing-prototypes twice.
Yeah... I noticed that after I posted the patch... This was more of an RFC patch than anything... I just wanted to get people's opinion...
Quoted 1 line
Also I think -pedantic is going too far.
Why? The one patch its used for does the following:
-gss_OID g_mechOid = GSS_C_NULL_OID;;
+gss_OID g_mechOid = GSS_C_NULL_OID;
Which seems reasonable... What do you see that I don't?
steved.