Actions
Bug #14492
openmake: clean build warnings
Start date:
Due date:
% Done:
90%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:
Description
Clean up all the warnings for make.
/code/illumos-gate/usr/src/cmd/make/bin/state.cc:152:15: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] 152 | if (lock_err = file_lock(make_state->string_mb, | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 153 | make_state_lockfile, | ~~~~~~~~~~~~~~~~~~~~ 154 | (int *) &make_state_locked, 0)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/state.cc:259:10: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] 259 | if (m = !dependency->stale | ~~^~~~~~~~~~~~~~~~~~~~ 260 | && (dependency->name != force) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 261 | #ifndef PRINT_EXPLICIT_DEPEN | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 262 | && dependency->automatic | ~~~~~~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/state.cc:123:9: error: variable 'fd' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered] 123 | FILE *fd; | ^~ /code/illumos-gate/usr/src/cmd/make/bin/state.cc:128:7: error: variable 'attempts' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered] 128 | int attempts = 0; | ^~~~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/bin/rep.cc:104:23: error: comparison of integer expressions of different signedness: 'std::size_t' {aka 'unsigned int'} and 'int' [-Werror=sign-compare] 104 | while (wcslen(line) == line_index) { | ~~~~~~~~~~~~~^~~~~~~~~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/bin/read2.cc: In function '_Dyntarget* enter_dyntarget(Name)': /code/illumos-gate/usr/src/cmd/make/bin/read2.cc:1073:9: error: unused variable 'i' [-Werror=unused-variable] 1073 | int i; | ^ /code/illumos-gate/usr/src/cmd/make/bin/read2.cc: In function 'void enter_dependencies(Name, Chain, Name_vector, Cmd_line, Separator)': /code/illumos-gate/usr/src/cmd/make/bin/read2.cc:648:35: error: 'directory' may be used uninitialized in this function [-Werror=maybe-uninitialized] 648 | line2->body.recursive.directory = directory; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/read2.cc:649:32: error: 'name' may be used uninitialized in this function [-Werror=maybe-uninitialized] 649 | line2->body.recursive.target = name; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/bin/read.cc: In function 'Boolean read_simple_file(Name, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)': /code/illumos-gate/usr/src/cmd/make/bin/read.cc:112:12: error: unused variable 'previous_current_makefile' [-Werror=unused-variable] 112 | wchar_t previous_current_makefile[MAXPATHLEN]; | ^~~~~~~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/read.cc: In function 'void parse_makefile(Name, Source)': /code/illumos-gate/usr/src/cmd/make/bin/read.cc:507:8: error: unused variable 'emptycount' [-Werror=unused-variable] 507 | int emptycount = 0; | ^~~~~~~~~~ In file included from /code/illumos-gate/usr/src/cmd/make/include/mk/defs.h:36, from /code/illumos-gate/usr/src/cmd/make/bin/read.cc:40: /code/illumos-gate/usr/src/cmd/make/include/mksh/defs.h:734:30: error: 'source_end' may be used uninitialized in this function [-Werror=maybe-uninitialized] 734 | (source_p >= source_end) ? 0 : *source_p) | ^ /code/illumos-gate/usr/src/cmd/make/bin/read.cc:466:11: note: 'source_end' was declared here 466 | wchar_t *source_end; | ^~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/read.cc:530:2: error: 'source_p' may be used uninitialized in this function [-Werror=maybe-uninitialized] 530 | for (char_number=0; 1; source_p++,char_number++) switch (GET_CHAR()) { | ^~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/bin/pmake.cc: In function 'int read_make_machines(Name)': /code/illumos-gate/usr/src/cmd/make/bin/pmake.cc:251:20: error: comparison of integer expressions of different signedness: 'std::size_t' {aka 'unsigned int'} and 'int' [-Werror=sign-compare] 251 | if (wcslen(mp) == local_host_wslen && | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/pmake.cc:259:27: error: comparison of integer expressions of different signedness: 'std::size_t' {aka 'unsigned int'} and 'int' [-Werror=sign-compare] 259 | } else if (wcslen(mp) == full_host_wslen && | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc: In function 'Doname execute_parallel(Property, Boolean, Boolean)': /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc:115:8: error: unused variable 'cmd_options' [-Werror=unused-variable] 115 | int cmd_options = 0; | ^~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc:124:11: error: unused variable 'result' [-Werror=unused-variable] 124 | Doname result = build_ok; | ^~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc:127:9: error: unused variable 'target' [-Werror=unused-variable] 127 | Name target = line->body.line.target; | ^~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc:128:12: error: unused variable 'wrote_state_file' [-Werror=unused-variable] 128 | Boolean wrote_state_file = false; | ^~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc:112:58: error: unused parameter 'local' [-Werror=unused-parameter] 112 | execute_parallel(Property line, Boolean waitflg, Boolean local) | ~~~~~~~~^~~~~ /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc: In function 'Doname distribute_process(char**, Property)': /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc:553:11: error: unused variable 'string' [-Werror=unused-variable] 553 | wchar_t string[MAXPATHLEN]; | ^~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc:555:7: error: unused variable 'filed' [-Werror=unused-variable] 555 | int filed; | ^~~~~ /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc:550:46: error: unused parameter 'line' [-Werror=unused-parameter] 550 | distribute_process(char **commands, Property line) | ~~~~~~~~~^~~~ /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc: In function 'pid_t run_rule_commands(char*, char**)': /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc:1761:25: error: unused parameter 'host' [-Werror=unused-parameter] 1761 | run_rule_commands(char *host, char **commands) | ~~~~~~^~~~ /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc: At global scope: /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc:1843:1: error: 'void maybe_reread_make_state()' defined but not used [-Werror=unused-function] 1843 | maybe_reread_make_state(void) | ^~~~~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc:74:14: error: 'user_name' defined but not used [-Werror=unused-variable] 74 | static char user_name[MAXNAMELEN] = ""; | ^~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/parallel.cc:72:17: error: 'just_did_subtree' defined but not used [-Werror=unused-variable] 72 | static Boolean just_did_subtree = false; | ^~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/bin/nse_printdep.cc:326:1: error: 'void print_rule(Name)' defined but not used [-Werror=unused-function] 326 | print_rule(Name target) | ^~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/nse_printdep.cc:120:1: error: 'void print_more_deps(Name, Name)' defined but not used [-Werror=unused-function] 120 | print_more_deps(Name target, Name name) | ^~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/bin/misc.cc: In function 'void print_target_n_deps(Name)': /code/illumos-gate/usr/src/cmd/make/bin/misc.cc:519:11: error: unused variable 'rule' [-Werror=unused-variable] 519 | Cmd_line rule; | ^~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/bin/main.cc: In function 'int main(int, char**)': /code/illumos-gate/usr/src/cmd/make/bin/main.cc:193:11: error: unused variable 'um' [-Werror=unused-variable] 193 | mode_t um; | ^~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:195:19: error: unused variable 'value' [-Werror=unused-variable] 195 | struct itimerval value; | ^~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:196:9: error: unused variable 'def_dmakerc_path' [-Werror=unused-variable] 196 | char def_dmakerc_path[MAXPATHLEN]; | ^~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:197:9: error: unused variable 'dmake_name' [-Werror=unused-variable] 197 | Name dmake_name, dmake_name2; | ^~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:198:9: error: unused variable 'dmake_value' [-Werror=unused-variable] 198 | Name dmake_value, dmake_value2; | ^~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:199:12: error: unused variable 'prop' [-Werror=unused-variable] 199 | Property prop, prop2; | ^~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:200:15: error: unused variable 'statbuf' [-Werror=unused-variable] 200 | struct stat statbuf; | ^~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:201:8: error: unused variable 'statval' [-Werror=unused-variable] 201 | int statval; | ^~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc: In function 'void cleanup_after_exit()': /code/illumos-gate/usr/src/cmd/make/bin/main.cc:624:13: error: unused variable 'getname_bytes_count' [-Werror=unused-variable] 624 | extern long getname_bytes_count; | ^~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:625:13: error: unused variable 'getname_names_count' [-Werror=unused-variable] 625 | extern long getname_names_count; | ^~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:626:13: error: unused variable 'getname_struct_count' [-Werror=unused-variable] 626 | extern long getname_struct_count; | ^~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:627:13: error: unused variable 'freename_bytes_count' [-Werror=unused-variable] 627 | extern long freename_bytes_count; | ^~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:628:13: error: unused variable 'freename_names_count' [-Werror=unused-variable] 628 | extern long freename_names_count; | ^~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:629:13: error: unused variable 'freename_struct_count' [-Werror=unused-variable] 629 | extern long freename_struct_count; | ^~~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:630:13: error: unused variable 'other_alloc' [-Werror=unused-variable] 630 | extern long other_alloc; | ^~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:632:13: error: unused variable 'env_alloc_num' [-Werror=unused-variable] 632 | extern long env_alloc_num; | ^~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:633:13: error: unused variable 'env_alloc_bytes' [-Werror=unused-variable] 633 | extern long env_alloc_bytes; | ^~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc: In function 'void read_command_options(int, char**)': /code/illumos-gate/usr/src/cmd/make/bin/main.cc:930:16: error: unused variable 'optarg' [-Werror=unused-variable] 930 | extern char *optarg; | ^~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc: In function 'void setup_makeflags_argv()': /code/illumos-gate/usr/src/cmd/make/bin/main.cc:1174:9: error: unused variable 'cp1' [-Werror=unused-variable] 1174 | char *cp1; | ^~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:1175:9: error: unused variable 'cp2' [-Werror=unused-variable] 1175 | char *cp2; | ^~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:1176:9: error: unused variable 'cp3' [-Werror=unused-variable] 1176 | char *cp3; | ^~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc: In function 'char* make_install_prefix()': /code/illumos-gate/usr/src/cmd/make/bin/main.cc:1634:8: error: unused variable 'dir' [-Werror=unused-variable] 1634 | char *dir; | ^~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc: In function 'void set_sgs_support()': /code/illumos-gate/usr/src/cmd/make/bin/main.cc:1690:7: error: unused variable 'len' [-Werror=unused-variable] 1690 | int len; | ^~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc: In function 'void read_files_and_state(int, char**)': /code/illumos-gate/usr/src/cmd/make/bin/main.cc:2103:22: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] 2103 | } while ( tmp_char = *cp++ ); | ~~~~~~~~~^~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:2403:17: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] 2403 | if (slashp = strrchr(make_state->string_mb, '/')) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:1781:8: error: unused variable 'ch' [-Werror=unused-variable] 1781 | char ch; | ^~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:1789:7: error: unused variable 'j' [-Werror=unused-variable] 1789 | int j; | ^ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:1791:8: error: unused variable 'length' [-Werror=unused-variable] 1791 | int length; | ^~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:1796:14: error: unused variable 'makefile_next' [-Werror=unused-variable] 1796 | int makefile_next = 0; | ^~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:1805:18: error: unused variable 'state_file_str' [-Werror=unused-variable] 1805 | static wchar_t state_file_str; | ^~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:1810:13: error: unused variable 'tmp_wcs_buffer' [-Werror=unused-variable] 1810 | wchar_t *tmp_wcs_buffer; | ^~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc: In function 'void enter_argv_values(int, char**, ASCII_Dyn_Array*)': /code/illumos-gate/usr/src/cmd/make/bin/main.cc:2452:15: error: unused variable 'statbuf' [-Werror=unused-variable] 2452 | struct stat statbuf; | ^~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc: In function 'void append_or_replace_macro_in_dyn_array(ASCII_Dyn_Array*, char*)': /code/illumos-gate/usr/src/cmd/make/bin/main.cc:3192:30: error: comparison of integer expressions of different signedness: 'int' and 'std::size_t' {aka 'unsigned int'} [-Werror=sign-compare] 3192 | for (len_array=0; len_array < Ar->size; len_array++) { | ~~~~~~~~~~^~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:3205:42: error: comparison of integer expressions of different signedness: 'int' and 'std::size_t' {aka 'unsigned int'} [-Werror=sign-compare] 3205 | if (len_array + len_macro + esc_len + 5 >= Ar->size) goto ALLOC_ARRAY; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc: At global scope: /code/illumos-gate/usr/src/cmd/make/bin/main.cc:1805:18: error: 'state_file_str' defined but not used [-Werror=unused-variable] 1805 | static wchar_t state_file_str; | ^~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:118:17: error: 'start_time' defined but not used [-Werror=unused-variable] 118 | static time_t start_time; | ^~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc: In function 'int main(int, char**)': /code/illumos-gate/usr/src/cmd/make/bin/main.cc:1273:4: error: 'add_hyphen' may be used uninitialized in this function [-Werror=maybe-uninitialized] 1273 | if (add_hyphen) { | ^~ /code/illumos-gate/usr/src/cmd/make/bin/main.cc:1178:11: note: 'add_hyphen' was declared here 1178 | Boolean add_hyphen; | ^~~~~~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/bin/macro.cc: In function 'void setvar_append(Name, Name)': /code/illumos-gate/usr/src/cmd/make/bin/macro.cc:60:8: error: unused variable 'length' [-Werror=unused-variable] 60 | int length; | ^~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/macro.cc:63:9: error: unused variable 'chain' [-Werror=unused-variable] 63 | Chain chain; | ^~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:167:14: error: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Werror=sign-compare] 167 | if (src_len >= sizeof(static_string_buf_3M)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:234:17: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] 234 | if(p = (char *) memchr((char *)source->string_mb,'/',source->hash.length)) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:237:15: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] 237 | if(np = (char *) memchr((char *)p+1,'/',source->hash.length - (p - source->string_mb))) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:314:11: error: enumeration value 'build_in_progress' not handled in switch [-Werror=switch] 314 | switch (result) { | ^ /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:314:11: error: enumeration value 'build_pending' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:314:11: error: enumeration value 'build_serial' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:314:11: error: enumeration value 'build_subtree' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:435:13: error: unused variable 'p' [-Werror=unused-variable] 435 | char * p; | ^ /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:436:11: error: unused variable 'tstr' [-Werror=unused-variable] 436 | char tstr[256]; | ^~~~ /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc: In function 'Doname find_ar_suffix_rule(Name, Name, _Property**, Boolean)': /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:548:10: error: enumeration value 'build_dont_know' not handled in switch [-Werror=switch] 548 | switch (find_suffix_rule(target, | ^ /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:548:10: error: enumeration value 'build_failed' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:548:10: error: enumeration value 'build_in_progress' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:548:10: error: enumeration value 'build_pending' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:548:10: error: enumeration value 'build_serial' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:548:10: error: enumeration value 'build_subtree' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc: In function 'Doname find_double_suffix_rule(Name, _Property**, Boolean)': /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:638:32: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Werror=sign-compare] 638 | if (true_target->hash.length < suffix_length) { | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:654:10: error: enumeration value 'build_dont_know' not handled in switch [-Werror=switch] 654 | switch (find_suffix_rule(target, | ^ /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:654:10: error: enumeration value 'build_failed' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:654:10: error: enumeration value 'build_in_progress' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:654:10: error: enumeration value 'build_pending' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:654:10: error: enumeration value 'build_serial' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:654:10: error: enumeration value 'build_subtree' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:601:12: error: unused variable 'name_found' [-Werror=unused-variable] 601 | Boolean name_found = true; | ^~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc: In function 'Boolean match_found_with_pattern(Name, Percent, String, wchar_t*)': /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:1225:20: error: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Werror=sign-compare] 1225 | if(suffix_length > target->hash.length) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:1233:20: error: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Werror=sign-compare] 1233 | if(suffix_length > target->hash.length) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc: At global scope: /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:53:17: error: 'WIDE_NULL' defined but not used [-Werror=unused-variable] 53 | static wchar_t WIDE_NULL[1] = {(wchar_t) nul_char}; | ^~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc: In function 'Doname find_percent_rule(Name, _Property**, Boolean)': /code/illumos-gate/usr/src/cmd/make/bin/implicit.cc:1145:23: error: 'less' may be used uninitialized in this function [-Werror=maybe-uninitialized] 1145 | line->body.line.less = less; | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/bin/files.cc: In function 'int read_dir(Name, wchar_t*, Property, wchar_t*)': /code/illumos-gate/usr/src/cmd/make/bin/files.cc:297:8: error: unused variable 'm_local_dependency' [-Werror=unused-variable] 297 | int m_local_dependency=0; | ^~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/files.cc: At global scope: /code/illumos-gate/usr/src/cmd/make/bin/files.cc:68:17: error: 'Boolean star_match(char*, char*)' declared 'static' but never defined [-Werror=unused-function] 68 | static Boolean star_match(char *string, char *pattern); | ^~~~~~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/bin/dosys.cc:59:14: error: 'void redirect_stderr()' declared 'static' but never defined [-Werror=unused-function] 59 | static void redirect_stderr(void); | ^~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/dosys.cc:54:15: error: 'filter_file_name' defined but not used [-Werror=unused-variable] 54 | static char *filter_file_name; | ^~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/dosys.cc:53:13: error: 'filter_file' defined but not used [-Werror=unused-variable] 53 | static int filter_file; | ^~~~~~~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/bin/doname.cc: In function 'Doname doname_check(Name, Boolean, Boolean, Boolean)': /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:137:9: error: enumeration value 'build_in_progress' not handled in switch [-Werror=switch] 137 | switch (doname(target, do_get, implicit, automatic)) { | ^ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:137:9: error: enumeration value 'build_pending' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:137:9: error: enumeration value 'build_serial' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:137:9: error: enumeration value 'build_subtree' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc: In function 'Doname doname(Name, Boolean, Boolean, Boolean)': /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:525:11: error: enumeration value 'build_dont_know' not handled in switch [-Werror=switch] 525 | switch (find_percent_rule( | ^ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:525:11: error: enumeration value 'build_in_progress' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:525:11: error: enumeration value 'build_pending' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:525:11: error: enumeration value 'build_serial' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:525:11: error: enumeration value 'build_subtree' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:595:12: error: enumeration value 'build_dont_know' not handled in switch [-Werror=switch] 595 | switch (find_double_suffix_rule(target, | ^ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:595:12: error: enumeration value 'build_ok' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:595:12: error: enumeration value 'build_in_progress' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:595:12: error: enumeration value 'build_pending' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:595:12: error: enumeration value 'build_serial' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:595:12: error: enumeration value 'build_subtree' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:641:11: error: enumeration value 'build_dont_know' not handled in switch [-Werror=switch] 641 | switch (find_suffix_rule(target, | ^ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:641:11: error: enumeration value 'build_ok' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:641:11: error: enumeration value 'build_in_progress' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:641:11: error: enumeration value 'build_pending' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:641:11: error: enumeration value 'build_serial' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:641:11: error: enumeration value 'build_subtree' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:736:10: error: enumeration value 'build_dont_know' not handled in switch [-Werror=switch] 736 | switch (result) { | ^ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:736:10: error: enumeration value 'build_failed' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:736:10: error: enumeration value 'build_in_progress' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:736:10: error: enumeration value 'build_pending' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:736:10: error: enumeration value 'build_subtree' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc: In function 'Boolean check_dependencies(Doname*, Property, Boolean, Name, Name, Boolean, _Chain**, Property, Boolean, _Property**, Name, Boolean, Boolean)': /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1014:11: error: enumeration value 'build_ok' not handled in switch [-Werror=switch] 1014 | switch (dep_result) { | ^ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1014:11: error: enumeration value 'build_in_progress' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1014:11: error: enumeration value 'build_pending' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1014:11: error: enumeration value 'build_serial' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1014:11: error: enumeration value 'build_subtree' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1259:25: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Werror=sign-compare] 1259 | if (tt->hash.length < suffix_length) { | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc: In function 'Doname run_command(Property, Boolean)': /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1717:12: error: enumeration value 'build_dont_know' not handled in switch [-Werror=switch] 1717 | switch (result) { | ^ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1717:12: error: enumeration value 'build_failed' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1717:12: error: enumeration value 'build_ok' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1717:12: error: enumeration value 'build_in_progress' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1717:12: error: enumeration value 'build_pending' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1717:12: error: enumeration value 'build_subtree' not handled in switch [-Werror=switch] /code/illumos-gate/usr/src/cmd/make/bin/doname.cc: In function 'Doname execute_serial(Property)': /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1771:8: error: unused variable 'child_pid' [-Werror=unused-variable] 1771 | int child_pid = 0; | ^~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1772:12: error: unused variable 'printed_serial' [-Werror=unused-variable] 1772 | Boolean printed_serial; | ^~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1775:9: error: unused variable 'mbstring' [-Werror=unused-variable] 1775 | char mbstring[MAXPATHLEN]; | ^~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:1776:8: error: unused variable 'filed' [-Werror=unused-variable] 1776 | int filed; | ^~~~~ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc: In function 'Doname touch_command(Property, Name, Doname)': /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:2546:25: error: suggest parentheses around '&&' within '||' [-Werror=parentheses] 2546 | do_not_exec_rule && | ~~~~~~~~~~~~~~~~~^~ 2547 | (target_group == NULL)) { | ~~~~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:2518:12: error: unused variable 'rule' [-Werror=unused-variable] 2518 | Cmd_line rule; | ^~~~ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc: In function 'void read_directory_of_file(Name)': /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:2854:33: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Werror=sign-compare] 2854 | if ((usr_include->hash.length == length) && | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:2859:44: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Werror=sign-compare] 2859 | } else if ((usr_include_sys->hash.length == length) && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc: At global scope: /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:73:13: error: 'userName' defined but not used [-Werror=unused-variable] 73 | static char userName[MAXNAMELEN] = ""; | ^~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:72:13: error: 'hostName' defined but not used [-Werror=unused-variable] 72 | static char hostName[MAXNAMELEN] = ""; | ^~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/doname.cc: In function 'Doname doname(Name, Boolean, Boolean, Boolean)': /code/illumos-gate/usr/src/cmd/make/bin/doname.cc:898:17: error: 'saved_commands_done' may be used uninitialized in this function [-Werror=maybe-uninitialized] 898 | commands_done = saved_commands_done; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/bin/ar.cc: In function 'Boolean open_archive(char*, Ar*)': /code/illumos-gate/usr/src/cmd/make/bin/ar.cc:273:9: error: unused variable 'mag_5' [-Werror=unused-variable] 273 | char mag_5[AR_5_MAGIC_LENGTH]; | ^~~~~ /code/illumos-gate/usr/src/cmd/make/bin/ar.cc: In function 'void translate_entry(Ar*, Name, Property, char**)': /code/illumos-gate/usr/src/cmd/make/bin/ar.cc:688:15: error: comparison of integer expressions of different signedness: 'std::size_t' {aka 'unsigned int'} and 'long int' [-Werror=sign-compare] 685 | if (fread((char *) offs, | ~~~~~~~~~~~~~~~~~~~~ 686 | AR_PORT_WORD, | ~~~~~~~~~~~~~ 687 | (int) arp->num_symbols, | ~~~~~~~~~~~~~~~~~~~~~~~ 688 | arp->fd) != arp->num_symbols) { | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/ar.cc:702:15: error: comparison of integer expressions of different signedness: 'std::size_t' {aka 'unsigned int'} and 'int' [-Werror=sign-compare] 699 | if (fread(syms, | ~~~~~~~~~~~ 700 | sizeof (char), | ~~~~~~~~~~~~~~ 701 | strtablen, | ~~~~~~~~~~ 702 | arp->fd) != strtablen) { | ~~~~~~~~~^~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/ar.cc:708:20: error: comparison of integer expressions of different signedness: 'std::size_t' {aka 'unsigned int'} and 'int' [-Werror=sign-compare] 708 | if(strlen(syms) > maxs) | ~~~~~~~~~~~~~^~~~~~ /code/illumos-gate/usr/src/cmd/make/bin/ar.cc:625:10: error: unused variable 'csym' [-Werror=unused-variable] 625 | char *csym; /* string table */ | ^~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/lib/vroot/setenv.cc:53:25: error: comparison of integer expressions of different signedness: 'int' and 'std::size_t' {aka 'unsigned int'} [-Werror=sign-compare] 53 | if (!p || (length+vl+1 > strlen(p))) | ~~~~~~~~~~~~^~~~~~~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/lib/vroot/vroot.cc: In function 'patht* parse_path_string(char*, int)': /code/illumos-gate/usr/src/cmd/make/lib/vroot/vroot.cc:98:9: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] 98 | if (p= strchr(string, ':')) *p= 0; | ~^~~~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/lib/vroot/report.cc: In function 'void report_dependency(const char*)': /code/illumos-gate/usr/src/cmd/make/lib/vroot/report.cc:290:8: error: unused variable 'nse_depinfo_file' [-Werror=unused-variable] 290 | char nse_depinfo_file[MAXPATHLEN]; | ^~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc: In function 'void expand_macro(Source, String, wchar_t*, Boolean)': /code/illumos-gate/usr/src/cmd/make/lib/mksh/macro.cc:575:14: error: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Werror=sign-compare] 575 | if (i++ >= VSIZEOF(right_hand)) { cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/lib/mksh/read.cc: In function '_Source* get_next_block_fn(Source)': /code/illumos-gate/usr/src/cmd/make/lib/mksh/read.cc:143:25: error: comparison of integer expressions of different signedness: 'int' and 'std::size_t' {aka 'unsigned int'} [-Werror=sign-compare] 143 | if ((int) num_wc_chars == (size_t)-1) { | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/lib/mksh/read.cc: In function '_Source* get_next_block_fn(Source)': /code/illumos-gate/usr/src/cmd/make/lib/mksh/read.cc:160:4: error: value computed is not used [-Werror=unused-value] 160 | *source->string.buffer.end++; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/lib/mksh/mksh.cc:101:1: error: 'void change_sunpro_dependencies_value(char*, char*)' defined but not used [-Werror=unused-function] 101 | change_sunpro_dependencies_value(char *oldpath, char *newpath) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/lib/mksh/mksh.cc:80:1: error: 'void init_mksh_globals(char*)' defined but not used [-Werror=unused-function] 80 | init_mksh_globals(char *shell) | ^~~~~~~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/lib/mksh/mksh.cc:68:1: error: 'void set_env_vars(char**)' defined but not used [-Werror=unused-function] 68 | set_env_vars(char *env_list[]) | ^~~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/lib/mksh/misc.cc: In function 'void mbstowcs_with_check(wchar_t*, const char*, std::size_t)': /code/illumos-gate/usr/src/cmd/make/lib/mksh/misc.cc:812:26: error: comparison of integer expressions of different signedness: 'std::size_t' {aka 'unsigned int'} and 'int' [-Werror=sign-compare] 812 | if(mbstowcs(pwcs, s, n) == -1) { | ~~~~~~~~~~~~~~~~~~~~~^~~~~ cc1plus: all warnings being treated as errors + /usr/gcc/7/bin/g++ -fident -finline -fno-inline-functions -fno-builtin -fno-asm -fdiagnostics-show-option -nodefaultlibs -D__sun -O -m32 -Wall -Wextra -Werror -I/code/illumos-gate/usr/src/cmd/make/include -D_FILE_OFFSET_BITS=64 -c -o /tmp/cw.eCaa_V/cweCaq_V.o /code/illumos-gate/usr/src/cmd/make/lib/mksh/misc.cc /code/illumos-gate/usr/src/cmd/make/lib/mksh/misc.cc: In function 'void mbstowcs_with_check(wchar_t*, const char*, std::size_t)': /code/illumos-gate/usr/src/cmd/make/lib/mksh/misc.cc:812:26: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if(mbstowcs(pwcs, s, n) == -1) { ~~~~~~~~~~~~~~~~~~~~~^~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/lib/mksh/misc.cc: In function 'void setup_char_semantics()': /code/illumos-gate/usr/src/cmd/make/lib/mksh/misc.cc:307:7: error: statement has no effect [-Werror=unused-value] 307 | for (s; MBTOWC(wc_buffer, s); s++) { | ^ /code/illumos-gate/usr/src/cmd/make/lib/mksh/misc.cc: In function 'void fatal_reader_mksh(const char*, ...)': /code/illumos-gate/usr/src/cmd/make/lib/mksh/misc.cc:426:7: error: unused variable 'message' [-Werror=unused-variable] 426 | char message[1000]; | ^~~~~~~ /code/illumos-gate/usr/src/cmd/make/lib/mksh/dosys.cc: In function 'Boolean await(Boolean, Boolean, Name, wchar_t*, pid_t, void*, int)': /code/illumos-gate/usr/src/cmd/make/lib/mksh/dosys.cc:437:10: error: unused variable 'buffer' [-Werror=unused-variable] 437 | char *buffer; | ^~~~~~ /code/illumos-gate/usr/src/cmd/make/lib/mksh/dosys.cc:440:10: error: unused variable 'outfp' [-Werror=unused-variable] 440 | FILE *outfp; | ^~~~~ /code/illumos-gate/usr/src/cmd/make/lib/mksh/dosys.cc:442:15: error: unused variable 'stat_buff' [-Werror=unused-variable] 442 | struct stat stat_buff; | ^~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/lib/mksh/dosys.cc: In function 'int doshell(wchar_t*, Boolean, char*, char*, int)': /code/illumos-gate/usr/src/cmd/make/lib/mksh/dosys.cc:149:55: error: unused parameter 'stdout_file' [-Werror=unused-parameter] 149 | doshell(wchar_t *command, Boolean ignore_error, char *stdout_file, char *stderr_file, int nice_prio) | ~~~~~~^~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/lib/mksh/dosys.cc:149:74: error: unused parameter 'stderr_file' [-Werror=unused-parameter] 149 | doshell(wchar_t *command, Boolean ignore_error, char *stdout_file, char *stderr_file, int nice_prio) | ~~~~~~^~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/lib/mksh/dosys.cc: In function 'int doexec(wchar_t*, Boolean, char*, char*, pathpt, int)': /code/illumos-gate/usr/src/cmd/make/lib/mksh/dosys.cc:314:54: error: unused parameter 'stdout_file' [-Werror=unused-parameter] 314 | doexec(wchar_t *command, Boolean ignore_error, char *stdout_file, char *stderr_file, pathpt vroot_path, int nice_prio) | ~~~~~~^~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/lib/mksh/dosys.cc:314:73: error: unused parameter 'stderr_file' [-Werror=unused-parameter] 314 | doexec(wchar_t *command, Boolean ignore_error, char *stdout_file, char *stderr_file, pathpt vroot_path, int nice_prio) | ~~~~~~^~~~~~~~~~~ /code/illumos-gate/usr/src/cmd/make/lib/mksh/dosys.cc: In function 'Boolean await(Boolean, Boolean, Name, wchar_t*, pid_t, void*, int)': /code/illumos-gate/usr/src/cmd/make/lib/mksh/dosys.cc:434:56: error: unused parameter 'target' [-Werror=unused-parameter] 434 | await(Boolean ignore_error, Boolean silent_error, Name target, wchar_t *command, pid_t running_pid, void *xdrs_p, int job_msg_id) | ~~~~~^~~~~~ /code/illumos-gate/usr/src/cmd/make/lib/mksh/dosys.cc:434:73: error: unused parameter 'command' [-Werror=unused-parameter] 434 | await(Boolean ignore_error, Boolean silent_error, Name target, wchar_t *command, pid_t running_pid, void *xdrs_p, int job_msg_id) | ~~~~~~~~~^~~~~~~ /code/illumos-gate/usr/src/cmd/make/lib/mksh/dosys.cc:434:107: error: unused parameter 'xdrs_p' [-Werror=unused-parameter] 434 | await(Boolean ignore_error, Boolean silent_error, Name target, wchar_t *command, pid_t running_pid, void *xdrs_p, int job_msg_id) | ~~~~~~^~~~~~ /code/illumos-gate/usr/src/cmd/make/lib/mksh/dosys.cc:434:119: error: unused parameter 'job_msg_id' [-Werror=unused-parameter] 434 | await(Boolean ignore_error, Boolean silent_error, Name target, wchar_t *command, pid_t running_pid, void *xdrs_p, int job_msg_id) | ~~~~^~~~~~~~~~ cc1plus: all warnings being treated as errors /code/illumos-gate/usr/src/cmd/make/lib/makestate/ld_file.c: In function 'ld_file': /code/illumos-gate/usr/src/cmd/make/lib/makestate/ld_file.c:142:42: error: unused parameter 'ekind' [-Werror=unused-parameter] 142 | ld_file(const char *file, const Elf_Kind ekind, int flags, Elf *elf) | ~~~~~~~~~~~~~~~^~~~~ /code/illumos-gate/usr/src/cmd/make/lib/makestate/ld_file.c:142:65: error: unused parameter 'elf' [-Werror=unused-parameter] 142 | ld_file(const char *file, const Elf_Kind ekind, int flags, Elf *elf) | ~~~~~^~~ /code/illumos-gate/usr/src/cmd/make/lib/makestate/ld_file.c: In function 'ld_file64': /code/illumos-gate/usr/src/cmd/make/lib/makestate/ld_file.c:165:44: error: unused parameter 'ekind' [-Werror=unused-parameter] 165 | ld_file64(const char *file, const Elf_Kind ekind, int flags, Elf *elf) | ~~~~~~~~~~~~~~~^~~~~ /code/illumos-gate/usr/src/cmd/make/lib/makestate/ld_file.c:165:67: error: unused parameter 'elf' [-Werror=unused-parameter] 165 | ld_file64(const char *file, const Elf_Kind ekind, int flags, Elf *elf) | ~~~~~^~~ cc1: all warnings being treated as errors
Actions