[PATCH] Added more compile warning options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Steve Dickson <steved@xxxxxxxxxx>
---
 configure.ac | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index a174bf4..197823f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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"])
 
-- 
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux