8838 libxcurses: variable 'code' set but not used

Review Request #764 — Created Nov. 21, 2017 and submitted

tsoome
illumos-gate
8838
31baf5a...
general
../src/libc/xcurses/overlay.c: In function 'overlay':
../src/libc/xcurses/overlay.c:51:6: error: variable 'code' set but not used [-Werror=unused-but-set-variable]
  int code;
      ^~~~
../src/libc/xcurses/overlay.c: In function 'overwrite':
../src/libc/xcurses/overlay.c:67:6: error: variable 'code' set but not used [-Werror=unused-but-set-variable]
  int code;
      ^~~~
cc1: all warnings being treated as errors


yuripv
  1. Ship It!
  2. 
      
jgmills
  1. Looks good to me.

  2. 
      
tsoome
tsoome
  1. The overlay and overwrite are also macros and need to keep the () around the name to prevent macro expansion.

  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...