diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-04-17 20:45:31 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-04-17 22:44:46 +0200 |
commit | a8616f18a315cf21d80da17685ebfbe5f6ec5a14 (patch) | |
tree | ec3768b480105e3abe7f1a8bf18b0fb0e2ad9b11 /crawl-ref/source/libunix.cc | |
parent | d181e100526d0cecc3463b2b380916c1a2ac851c (diff) | |
download | crawl-ref-a8616f18a315cf21d80da17685ebfbe5f6ec5a14.tar.gz crawl-ref-a8616f18a315cf21d80da17685ebfbe5f6ec5a14.zip |
Make a gcc-4.7 warning happy.
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r-- | crawl-ref/source/libunix.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc index 9a0bbe57c9..8f4e795911 100644 --- a/crawl-ref/source/libunix.cc +++ b/crawl-ref/source/libunix.cc @@ -400,7 +400,7 @@ void console_startup(void) // only spams when not relevant, but cannot even be selectively hushed // by (void) casts like all other such warnings. // "if ();" is an unsightly hack... - if (write(1, KPADAPP, strlen(KPADAPP))); + if (write(1, KPADAPP, strlen(KPADAPP))) {}; #endif #ifdef USE_UNIX_SIGNALS @@ -451,7 +451,7 @@ void console_shutdown() tcsetattr(0, TCSAFLUSH, &def_term); #ifdef CURSES_USE_KEYPAD // "if ();" to avoid undisableable spurious warning. - if (write(1, KPADCUR, strlen(KPADCUR))); + if (write(1, KPADCUR, strlen(KPADCUR))) {}; #endif #ifdef USE_UNIX_SIGNALS |