From 85c287f335aa3676e3ca804424d131acb96830bd Mon Sep 17 00:00:00 2001 From: girish Date: Fri, 29 Aug 2008 11:54:19 +0000 Subject: [PATCH] Quite a warning and enable -Werror(Robert). b=15981 i=adilger i=rread i=girish --- lustre/autoconf/lustre-core.m4 | 4 ++++ lustre/liblustre/super.c | 1 + 2 files changed, 5 insertions(+) diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 6a4e7a6..d4360da 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -1850,6 +1850,10 @@ LB_LINUX_TRY_COMPILE([ AC_DEFUN([LC_CONFIGURE], [LC_CONFIG_OBD_BUFFER_SIZE +if test $target_cpu == "i686" -o $target_cpu == "x86_64"; then + CFLAGS="$CFLAGS -Werror" +fi + # include/liblustre.h AC_CHECK_HEADERS([sys/user.h sys/vfs.h stdint.h blkid/blkid.h]) diff --git a/lustre/liblustre/super.c b/lustre/liblustre/super.c index 97d55a1..9a5e5b7 100644 --- a/lustre/liblustre/super.c +++ b/lustre/liblustre/super.c @@ -1000,6 +1000,7 @@ static int llu_readlink_internal(struct inode *inode, ENTRY; *request = NULL; + *symname = NULL; if (lli->lli_symlink_name) { *symname = lli->lli_symlink_name; -- 1.8.3.1