Ticket #47481: patch-src-log.c.diff

File patch-src-log.c.diff, 962 bytes (added by Schamschula (Marius Schamschula), 9 years ago)
  • src/log.c

    old new  
    266266        enter_critical_section(CRIT_ID);
    267267        my_seq=seq++;
    268268        leave_critical_section(CRIT_ID);
    269 #ifdef __GNUC__
    270 #pragma GCC diagnostic push
    271 #pragma GCC diagnostic ignored "-Wformat"
    272 #pragma GCC diagnostic ignored "-Wformat-extra-args"
    273 #endif /* __GNUC__ */
    274269        return str_printf("%llu", my_seq);
    275 #ifdef __GNUC__
    276 #pragma GCC diagnostic pop
    277 #endif /* __GNUC__ */
    278270    case LOG_ID_UNIQUE:
    279271        if(RAND_bytes(rnd, sizeof rnd)<=0) /* log2(62^22)=130.99 */
    280272            return str_dup("error");
     
    302294
    303295/* critical problem handling */
    304296/* str.c functions are not safe to use here */
    305 #ifdef __GNUC__
    306 #pragma GCC diagnostic push
    307 #pragma GCC diagnostic ignored "-Wunused-result"
    308 #endif /* __GNUC__ */
    309297void fatal_debug(char *txt, const char *file, int line) {
    310298    char msg[80];
    311299#ifdef USE_WIN32