None.
Suppresses informational, language-level and warning messages.
This option is equivalent to specifying -qflag=e : e. This option is equivalent to specifying -qflag=s : s.
All informational and warning messages are reported.
Informational and warning messages that supply additional information to a severe error are not disabled by this option.
None.
xlc myprogram.c -w
void func(int a){} void func(int a, int b){} int main(void) { func(1,2,3); return 0; }The output is as follows:
"x.cpp", line 6.4: 1540-0218 (S) The call does not match any parameter list for "func". "x.cpp", line 1.6: 1540-1283 (I) "func(int)" is not a viable candidate. "x.cpp", line 6.4: 1540-0215 (I) The wrong number of arguments have been specified for "func(int)". "x.cpp", line 2.6: 1540-1283 (I) "func(int, int)" is not a viable candidate. "x.cpp", line 6.4: 1540-0215 (I) The wrong number of arguments have been specified for "func(int, int)".