1
0
Эх сурвалжийг харах

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

Bryan Drewery 7 жил өмнө
parent
commit
d1246b5714
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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);