nconfig: Silence unused return values from wattrset
PATCH 1/1 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
--- scripts/kconfig/nconf.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)
scripts/kconfig/nconf.c +7 -7
@@ -373,18 +373,18 @@ static void print_function_line(void)const int skip =1 ;for (i =0 ; i < function_keys_num; i++) { -wattrset (main_window, attributes[FUNCTION_HIGHLIGHT ]); + (void )wattrset (main_window, attributes[FUNCTION_HIGHLIGHT ]);mvwprintw (main_window,LINES -3 , offset,"%s" , function_keys[i].key_str); -wattrset (main_window, attributes[FUNCTION_TEXT ]); + (void )wattrset (main_window, attributes[FUNCTION_TEXT ]); offset +=strlen (function_keys[i].key_str);mvwprintw (main_window,LINES -3 , offset,"%s" , function_keys[i].func); offset +=strlen (function_keys[i].func) + skip; } -wattrset (main_window, attributes[NORMAL ]); + (void )wattrset (main_window, attributes[NORMAL ]); }/* help */
@@ -953,16 +953,16 @@ static void show_menu(const char *prompt, const char *instructions, current_instructions = instructions;clear (); -wattrset (main_window, attributes[NORMAL ]); + (void )wattrset (main_window, attributes[NORMAL ]);print_in_middle (stdscr,1 ,0 ,COLS , menu_backtitle, attributes[MAIN_HEADING ]); -wattrset (main_window, attributes[MAIN_MENU_BOX ]); + (void )wattrset (main_window, attributes[MAIN_MENU_BOX ]);box (main_window,0 ,0 ); -wattrset (main_window, attributes[MAIN_MENU_HEADING ]); + (void )wattrset (main_window, attributes[MAIN_MENU_HEADING ]);mvwprintw (main_window,0 ,3 ," %s " , prompt); -wattrset (main_window, attributes[NORMAL ]); + (void )wattrset (main_window, attributes[NORMAL ]);set_menu_items (curses_menu, curses_menu_items);
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Quoted 13 lines · Stephen Boyd
Ignore the return value from wattrset since we ignore the return value in
nconf.gui.cas well.
scripts/kconfig/nconf.c: In function 'print_function_line':scripts/kconfig/nconf.c:376: warning: value computed is not usedscripts/kconfig/nconf.c:380: warning: value computed is not usedscripts/kconfig/nconf.c:387: warning: value computed is not usedscripts/kconfig/nconf.c: In function 'show_menu':scripts/kconfig/nconf.c:956: warning: value computed is not usedscripts/kconfig/nconf.c:961: warning: value computed is not usedscripts/kconfig/nconf.c:963: warning: value computed is not usedscripts/kconfig/nconf.c:965: warning: value computed is not used
Quoted 3 lines
Cc Nir Tzachar <[email protected]>Signed-off-by Stephen Boyd <[email protected]>---
Ping? Nack? Ack?
Quoted 50 lines
scripts/kconfig/nconf.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)scripts/kconfig/nconf.c +7
-7@@ -373,18 +373,18 @@ static void print_function_line(void)const int skip =1 ;for (i =0 ; i < function_keys_num; i++) { -wattrset (main_window, attributes[FUNCTION_HIGHLIGHT ]); + (void )wattrset (main_window, attributes[FUNCTION_HIGHLIGHT ]);mvwprintw (main_window,LINES -3 , offset,"%s" , function_keys[i].key_str); -wattrset (main_window, attributes[FUNCTION_TEXT ]); + (void )wattrset (main_window, attributes[FUNCTION_TEXT ]); offset +=strlen (function_keys[i].key_str);mvwprintw (main_window,LINES -3 , offset,"%s" , function_keys[i].func); offset +=strlen (function_keys[i].func) + skip; } -wattrset (main_window, attributes[NORMAL ]); + (void )wattrset (main_window, attributes[NORMAL ]); }/* help */ @@ -953,16 +953,16 @@ static void show_menu(const char *prompt, const char *instructions, current_instructions = instructions;clear (); -wattrset (main_window, attributes[NORMAL ]); + (void )wattrset (main_window, attributes[NORMAL ]);print_in_middle (stdscr,1 ,0 ,COLS , menu_backtitle, attributes[MAIN_HEADING ]); -wattrset (main_window, attributes[MAIN_MENU_BOX ]); + (void )wattrset (main_window, attributes[MAIN_MENU_BOX ]);box (main_window,0 ,0 ); -wattrset (main_window, attributes[MAIN_MENU_HEADING ]); + (void )wattrset (main_window, attributes[MAIN_MENU_HEADING ]);mvwprintw (main_window,0 ,3 ," %s " , prompt); -wattrset (main_window, attributes[NORMAL ]); + (void )wattrset (main_window, attributes[NORMAL ]);set_menu_items (curses_menu, curses_menu_items);
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Quoted 14 lines · Stephen Boyd
Quoted 13 lines · Stephen Boyd
Ignore the return value from wattrset since we ignore the return value in
nconf.gui.cas well.
scripts/kconfig/nconf.c: In function 'print_function_line':scripts/kconfig/nconf.c:376: warning: value computed is not usedscripts/kconfig/nconf.c:380: warning: value computed is not usedscripts/kconfig/nconf.c:387: warning: value computed is not usedscripts/kconfig/nconf.c: In function 'show_menu':scripts/kconfig/nconf.c:956: warning: value computed is not usedscripts/kconfig/nconf.c:961: warning: value computed is not usedscripts/kconfig/nconf.c:963: warning: value computed is not usedscripts/kconfig/nconf.c:965: warning: value computed is not used
Quoted 5 lines
Quoted 3 lines
Cc Nir Tzachar <[email protected]>Signed-off-by Stephen Boyd <[email protected]>---
Ping? Nack? Ack?
Sorry, I missed this patch. I applied it do kbuild-2.6.git#kconfig now.
Michal