BUILD/MINOR: haproxy: compiling config cpu parsing handling when needed
parse_cpu_set is only relevant where there is cpu affinity,
avoiding in the process compilation warning as well.
diff --git a/src/cfgparse.c b/src/cfgparse.c
index e7e32cf..b3202a6 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -646,6 +646,7 @@
return 0;
}
+#ifdef USE_CPU_AFFINITY
/* Parse cpu sets. Each CPU set is either a unique number between 0 and
* <LONGBITS> or a range with two such numbers delimited by a dash
* ('-'). Multiple CPU numbers or ranges may be specified. On success, it
@@ -687,6 +688,8 @@
}
return 0;
}
+#endif
+
/*
* parse a line in a <global> section. Returns the error code, 0 if OK, or
* any combination of :