Ticket #47481: patch-src-log.c.diff
File patch-src-log.c.diff, 962 bytes (added by Schamschula (Marius Schamschula), 10 years ago) |
---|
-
src/log.c
old new 266 266 enter_critical_section(CRIT_ID); 267 267 my_seq=seq++; 268 268 leave_critical_section(CRIT_ID); 269 #ifdef __GNUC__270 #pragma GCC diagnostic push271 #pragma GCC diagnostic ignored "-Wformat"272 #pragma GCC diagnostic ignored "-Wformat-extra-args"273 #endif /* __GNUC__ */274 269 return str_printf("%llu", my_seq); 275 #ifdef __GNUC__276 #pragma GCC diagnostic pop277 #endif /* __GNUC__ */278 270 case LOG_ID_UNIQUE: 279 271 if(RAND_bytes(rnd, sizeof rnd)<=0) /* log2(62^22)=130.99 */ 280 272 return str_dup("error"); … … 302 294 303 295 /* critical problem handling */ 304 296 /* str.c functions are not safe to use here */ 305 #ifdef __GNUC__306 #pragma GCC diagnostic push307 #pragma GCC diagnostic ignored "-Wunused-result"308 #endif /* __GNUC__ */309 297 void fatal_debug(char *txt, const char *file, int line) { 310 298 char msg[80]; 311 299 #ifdef USE_WIN32