Commit 10175ba65fde4b3708b9dd338af4b2dfb6bf266d
Committed by
Michal Marek
1 parent
c33724a438
Exists in
master
and in
39 other branches
nconfig: Silence unused return values from wattrset
Ignore the return value from wattrset since we ignore the return value in nconf.gui.c as well. scripts/kconfig/nconf.c: In function 'print_function_line': scripts/kconfig/nconf.c:376: warning: value computed is not used scripts/kconfig/nconf.c:380: warning: value computed is not used scripts/kconfig/nconf.c:387: warning: value computed is not used scripts/kconfig/nconf.c: In function 'show_menu': scripts/kconfig/nconf.c:956: warning: value computed is not used scripts/kconfig/nconf.c:961: warning: value computed is not used scripts/kconfig/nconf.c:963: warning: value computed is not used scripts/kconfig/nconf.c:965: warning: value computed is not used Cc: Nir Tzachar <nir.tzachar@gmail.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Michal Marek <mmarek@suse.cz>
Showing 1 changed file with 7 additions and 7 deletions Side-by-side Diff
scripts/kconfig/nconf.c
... | ... | @@ -373,18 +373,18 @@ |
373 | 373 | const int skip = 1; |
374 | 374 | |
375 | 375 | for (i = 0; i < function_keys_num; i++) { |
376 | - wattrset(main_window, attributes[FUNCTION_HIGHLIGHT]); | |
376 | + (void) wattrset(main_window, attributes[FUNCTION_HIGHLIGHT]); | |
377 | 377 | mvwprintw(main_window, LINES-3, offset, |
378 | 378 | "%s", |
379 | 379 | function_keys[i].key_str); |
380 | - wattrset(main_window, attributes[FUNCTION_TEXT]); | |
380 | + (void) wattrset(main_window, attributes[FUNCTION_TEXT]); | |
381 | 381 | offset += strlen(function_keys[i].key_str); |
382 | 382 | mvwprintw(main_window, LINES-3, |
383 | 383 | offset, "%s", |
384 | 384 | function_keys[i].func); |
385 | 385 | offset += strlen(function_keys[i].func) + skip; |
386 | 386 | } |
387 | - wattrset(main_window, attributes[NORMAL]); | |
387 | + (void) wattrset(main_window, attributes[NORMAL]); | |
388 | 388 | } |
389 | 389 | |
390 | 390 | /* help */ |
391 | 391 | |
392 | 392 | |
393 | 393 | |
... | ... | @@ -953,16 +953,16 @@ |
953 | 953 | current_instructions = instructions; |
954 | 954 | |
955 | 955 | clear(); |
956 | - wattrset(main_window, attributes[NORMAL]); | |
956 | + (void) wattrset(main_window, attributes[NORMAL]); | |
957 | 957 | print_in_middle(stdscr, 1, 0, COLS, |
958 | 958 | menu_backtitle, |
959 | 959 | attributes[MAIN_HEADING]); |
960 | 960 | |
961 | - wattrset(main_window, attributes[MAIN_MENU_BOX]); | |
961 | + (void) wattrset(main_window, attributes[MAIN_MENU_BOX]); | |
962 | 962 | box(main_window, 0, 0); |
963 | - wattrset(main_window, attributes[MAIN_MENU_HEADING]); | |
963 | + (void) wattrset(main_window, attributes[MAIN_MENU_HEADING]); | |
964 | 964 | mvwprintw(main_window, 0, 3, " %s ", prompt); |
965 | - wattrset(main_window, attributes[NORMAL]); | |
965 | + (void) wattrset(main_window, attributes[NORMAL]); | |
966 | 966 | |
967 | 967 | set_menu_items(curses_menu, curses_menu_items); |
968 | 968 |