Whamcloud - gitweb
Quite a warning and enable -Werror(Robert).
authorgirish <girish>
Fri, 29 Aug 2008 11:54:19 +0000 (11:54 +0000)
committergirish <girish>
Fri, 29 Aug 2008 11:54:19 +0000 (11:54 +0000)
b=15981
i=adilger
i=rread
i=girish

lustre/autoconf/lustre-core.m4
lustre/liblustre/super.c

index 6a4e7a6..d4360da 100644 (file)
@@ -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])
 
index 97d55a1..9a5e5b7 100644 (file)
@@ -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;