configure: fix libnuma_v2 probe to work with -Werror
authorCastor Fu <castor@alumni.caltech.edu>
Thu, 29 Jan 2015 18:07:36 +0000 (10:07 -0800)
committerJens Axboe <axboe@fb.com>
Fri, 6 Feb 2015 16:09:37 +0000 (09:09 -0700)
I noticed that libnuma_v2 wasn't getting detected in our build
environment because we would get an error that mask was unused.

Signed-off-by: Jens Axboe <axboe@fb.com>
configure

index 6e1376f27f03d256a45f93cee087b91316da885d..892335b92b8a37b95ed166cac6d677aebdf10d72 100755 (executable)
--- a/configure
+++ b/configure
@@ -887,7 +887,7 @@ cat > $TMPC << EOF
 int main(int argc, char **argv)
 {
   struct bitmask *mask = numa_parse_nodestring(NULL);
 int main(int argc, char **argv)
 {
   struct bitmask *mask = numa_parse_nodestring(NULL);
-  return 0;
+  return mask->size == 0;
 }
 EOF
 if compile_prog "" "" "libnuma api"; then
 }
 EOF
 if compile_prog "" "" "libnuma api"; then