]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix build issue when `__GNUC__ <= 2`
authorChris Hathhorn <chathhorn@gmail.com>
Tue, 16 Jan 2018 16:45:04 +0000 (10:45 -0600)
committerGitHub <noreply@github.com>
Tue, 16 Jan 2018 16:45:04 +0000 (10:45 -0600)
The `__printflike` macro appears to take two arguments.

src/logerr.h

index 569a5bf7bfef42cc183e70b9e4a2856871ff2469..d4afa77c39fd71cd08d488662bf23c3e752c39cc 100644 (file)
@@ -34,7 +34,7 @@
 #if __GNUC__ > 2 || defined(__INTEL_COMPILER)
 #define        __printflike(a, b) __attribute__((format(printf, a, b)))
 #else
-#define        __printflike
+#define        __printflike(a, b)
 #endif
 #endif /* !__printflike */