Due to the use of attrset, I get many compiler warnings such as:

curs_main.c: In function ‘mutt_index_menu’:
curs_main.c:563: warning: value computed is not used
curs_main.c:566: warning: value computed is not used
curs_lib.c: In function ‘curses_message’:
curs_lib.c:312: warning: value computed is not used
curs_lib.c:315: warning: value computed is not used
curs_lib.c: In function ‘mutt_show_error’:
curs_lib.c:457: warning: value computed is not used
curs_lib.c:460: warning: value computed is not used

menu.c: In function ‘print_enriched_string’:
menu.c:132: warning: value computed is not used
menu.c: In function ‘menu_redraw_index’:
menu.c:219: warning: value computed is not used
menu.c:224: warning: value computed is not used
menu.c:227: warning: value computed is not used
menu.c:232: warning: value computed is not used
menu.c:241: warning: value computed is not used
menu.c: In function ‘menu_redraw_motion’:
menu.c:278: warning: value computed is not used
menu.c:293: warning: value computed is not used
menu.c:301: warning: value computed is not used
menu.c:310: warning: value computed is not used
menu.c: In function ‘menu_redraw_current’:
menu.c:332: warning: value computed is not used
menu.c:334: warning: value computed is not used
menu.c:337: warning: value computed is not used
menu.c:345: warning: value computed is not used

Shouldn't the return value of attrset be tested?

The attrset(3ncurses) man page under Linux says:

  RETURN VALUE
     All routines return the integer OK on success, or ERR on failure.

-- 
Vincent Lefèvre <[email protected]> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

Reply via email to