tools: don't use __attribute__
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 27 Mar 2012 03:45:18 +0000 (14:15 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 27 Mar 2012 03:45:18 +0000 (14:15 +1030)
We have compiler.h for that.

tools/depends.c

index c107f4b330c28a2a2473da87aea02cb267a43d6b..7f232233b32b90bda37a9b5f35422e3c399ce6b0 100644 (file)
@@ -3,6 +3,7 @@
 #include <ccan/grab_file/grab_file.h>
 #include <ccan/str_talloc/str_talloc.h>
 #include <ccan/read_write_all/read_write_all.h>
 #include <ccan/grab_file/grab_file.h>
 #include <ccan/str_talloc/str_talloc.h>
 #include <ccan/read_write_all/read_write_all.h>
+#include <ccan/compiler/compiler.h>
 #include "tools.h"
 #include <sys/types.h>
 #include <sys/stat.h>
 #include "tools.h"
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -12,7 +13,7 @@
 #include <unistd.h>
 #include <errno.h>
 
 #include <unistd.h>
 #include <errno.h>
 
-static char ** __attribute__((format(printf, 2, 3)))
+static char ** PRINTF_FMT(2, 3)
 lines_from_cmd(const void *ctx, const char *format, ...)
 {
        va_list ap;
 lines_from_cmd(const void *ctx, const char *format, ...)
 {
        va_list ap;