]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: contrib/da: remove an "unused" warning
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Nov 2019 12:39:16 +0000 (13:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Nov 2019 12:39:16 +0000 (13:39 +0100)
The rcsid variable is static an unused, causing a build warning. Let's
just add __attribute__((unused)) to shut the warning.

This may be backported to 2.0.

contrib/deviceatlas/dac.c

index 7da6971526afe2a64ea33eddc048bf9399f667d4..f94fe8daf59ece2d00b8579b8d4cedf5bede264a 100644 (file)
@@ -3,7 +3,7 @@
 #include <string.h>
 #include <time.h>
 
-static char const rcsid[] = "$Id: dac.c, v dummy 1970/01/01 00:00:01 dcarlier Exp $";
+static char const __attribute__((unused)) rcsid[] = "$Id: dac.c, v dummy 1970/01/01 00:00:01 dcarlier Exp $";
 
 struct da_bitset {
     unsigned long bits[8];