Ignore:
Timestamp:
2016-11-28T19:26:16Z (8 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
90254d0
Parents:
2a1c27f
Message:

Fix some compiler warnings

warn_unused_result on write() is particularly annoying. You can't just
add (void) to ignore it due to gcc bug 66425.

I replaced some of those with fwrite() and used a variable marked with
the G_GNUC_UNUSED attribute for the writes from signal handlers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn_util.c

    r2a1c27f r0483e1e  
    180180        if (getenv("BITLBEE_DEBUG")) {
    181181                fprintf(stderr, "\n\x1b[92m<<< ");
    182                 write(2, bytes , st);
     182                fwrite(bytes, st, 1, stderr);
    183183                fprintf(stderr, "\x1b[97m");
    184184        }
Note: See TracChangeset for help on using the changeset viewer.