From: Castor Fu Date: Thu, 29 Jan 2015 18:07:36 +0000 (-0800) Subject: configure: fix libnuma_v2 probe to work with -Werror X-Git-Tag: fio-2.2.6~18 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=61bde962bacf9babd656d354136efcbc92ac7473 configure: fix libnuma_v2 probe to work with -Werror 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 --- diff --git a/configure b/configure index 6e1376f2..892335b9 100755 --- a/configure +++ b/configure @@ -887,7 +887,7 @@ cat > $TMPC << EOF 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