Skip to content
Snippets Groups Projects
Commit 31d4b0fe authored by girish's avatar girish
Browse files

Enable -Werror for x86_64 and i686.

b=15981
i=adilger
i=rread
parent f9ef3bf3
No related branches found
No related tags found
No related merge requests found
...@@ -599,6 +599,11 @@ if test $target_cpu == "powerpc64"; then ...@@ -599,6 +599,11 @@ if test $target_cpu == "powerpc64"; then
CC="$CC -m64" CC="$CC -m64"
fi fi
/* Enable -Werror */
if test $target_cpu == "i686" -o $target_cpu == "x86_64"; then
CFLAGS="$CFLAGS -Werror"
fi
CPPFLAGS="-I\$(top_builddir)/$LIBCFS_INCLUDE_DIR -I\$(top_srcdir)/$LIBCFS_INCLUDE_DIR-I\$(top_builddir)/lnet/include -I\$(top_srcdir)/lnet/include -I\$(top_builddir)/lustre/include -I\$(top_srcdir)/lustre/include $CPPFLAGS" CPPFLAGS="-I\$(top_builddir)/$LIBCFS_INCLUDE_DIR -I\$(top_srcdir)/$LIBCFS_INCLUDE_DIR-I\$(top_builddir)/lnet/include -I\$(top_srcdir)/lnet/include -I\$(top_builddir)/lustre/include -I\$(top_srcdir)/lustre/include $CPPFLAGS"
LLCPPFLAGS="-D__arch_lib__ -D_LARGEFILE64_SOURCE=1" LLCPPFLAGS="-D__arch_lib__ -D_LARGEFILE64_SOURCE=1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment