build: improve wflags.py for gcc

cc cannot -Wformat-y2k

	cc1: warning: -Wformat-y2k ignored without -Wformat [-Wformat-y2k]

cc cannot -Wformat-zero-length

	cc1: warning: -Wformat-zero-length ignored without -Wformat [-Wformat-zero-length]
parent 802884c9
......@@ -48,8 +48,8 @@ DESIRABLE_WFLAGS = [
"-Wchar-subscripts",
"-Wempty-body",
"-Wextra",
"-Wformat-y2k",
"-Wformat-zero-length",
"-Wformat -Wformat-y2k",
"-Wformat -Wformat-zero-length",
"-Wmissing-field-initializers",
"-Wmissing-prototypes",
"-Wnested-externs",
......@@ -85,7 +85,7 @@ UNDESIRABLE_WFLAGS = [
def cc(compiler, opt, obj, src):
a = [compiler, "-c"]
if opt is not None:
a.append(opt)
a += opt.split()
a += ["-o", obj, src]
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment