Explorar o código

GCC doesn't like the empty irc_log() macro after an else statement

Bryan Drewery %!s(int64=7) %!d(string=hai) anos
pai
achega
d1246b5714
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/log.h

+ 1 - 1
src/log.h

@@ -36,7 +36,7 @@ char *maskname(int);
 #if 0
 void irc_log(struct chanset_t *, const char *, ...) __attribute__((format(printf, 2, 3)));
 #else
-#define irc_log(...)
+#define irc_log(...) do {} while (0)
 #endif
 void logfile(int type, const char *msg);