Project

General

Profile

Bug #5523 ยป cw.c.patch

Richard PALO, 2015-01-11 12:59 PM

View differences:

usr/src/tools/cw/cw.c
179 179
 * -dy or -dn			-Wl,-dy or -Wl,-dn
180 180
 * -E				pass-thru
181 181
 * -erroff=E_EMPTY_TRANSLATION_UNIT ignore
182
 * -errfmt[=<a>]		ignore
182 183
 * -errtags=%all		-Wall
183 184
 * -errwarn=%all		-Werror else -Wno-error
185
 * -errwarn=no%<tag>		ignore
184 186
 * -fast			error
185 187
 * -fd				error
186 188
 * -features=zla		ignore
......
882 884
				 */
883 885
				break;
884 886
			}
885
			/* XX64 -- ignore all -erroff= options, for now */
887
			/* XX64 -- ignore all -errfmt and -erroff=
888
			 *  options, for now */
889
			if (strncmp(arg, "-errfmt", 7) == 0)
890
				break;
886 891
			if (strncmp(arg, "-erroff=", 8) == 0)
887 892
				break;
888 893
			if (strcmp(arg, "-errtags=yes") == 0) {
......
893 898
				newae(ctx->i_ae, "-Werror");
894 899
				break;
895 900
			}
901
			/* ignore warnings demoted from errwarn*/
902
			if (strncmp(arg, "-errwarn=no%", 12) == 0)
903
				break;
896 904
			error(arg);
897 905
			break;
898 906
		case 'f':
    (1-1/1)