From: John L. Hammond Date: Thu, 25 Jun 2015 06:03:26 +0000 (-0500) Subject: LU-6835 build: add -Wall to CFLAGS for test/ and utils/ X-Git-Tag: 2.7.57~3 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=b80d263bed6d4756ecc471129822612104f01487 LU-6835 build: add -Wall to CFLAGS for test/ and utils/ Add -Wall to the CFLAGS used for lustre/{test,utils}/. Fixup missing includes where needed. Signed-off-by: John L. Hammond Change-Id: I19d0739e0a9b5b079665d5d24d54c6dcaad93b0c Reviewed-on: http://review.whamcloud.com/15392 Reviewed-by: Bob Glossman Reviewed-by: James Simmons Tested-by: Jenkins Reviewed-by: Dmitry Eremin Tested-by: Maloo Reviewed-by: Chris Horn Reviewed-by: Oleg Drokin --- diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 07a4d52..f553668 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -2072,7 +2072,7 @@ AC_MSG_NOTICE([Lustre core checks LC_CONFIG_OBD_BUFFER_SIZE AS_IF([test $target_cpu == "i686" -o $target_cpu == "x86_64"], - [CFLAGS="$CFLAGS -Werror"]) + [CFLAGS="$CFLAGS -Wall -Werror"]) # maximum MDS thread count LC_MDS_MAX_THREADS diff --git a/lustre/utils/lfs.c b/lustre/utils/lfs.c index c8d5dc4..378cc78 100644 --- a/lustre/utils/lfs.c +++ b/lustre/utils/lfs.c @@ -57,6 +57,7 @@ #include #include #include +#include #include #include #include diff --git a/lustre/utils/libiam.c b/lustre/utils/libiam.c index 42d1a47..84f41a3 100644 --- a/lustre/utils/libiam.c +++ b/lustre/utils/libiam.c @@ -52,10 +52,7 @@ #include #include -#ifdef HAVE_ENDIAN_H -#include -#endif - +#include #include #include diff --git a/lustre/utils/liblustreapi_hsm.c b/lustre/utils/liblustreapi_hsm.c index f569fc6..78ab4d8 100644 --- a/lustre/utils/liblustreapi_hsm.c +++ b/lustre/utils/liblustreapi_hsm.c @@ -43,6 +43,7 @@ #include #include #include +#include #include #include #include