unifyfs %oneapi: -Wno-error=deprecated-non-prototype,unused-function (#33602)

This commit is contained in:
eugeneswalker 2022-10-29 13:19:27 -07:00 committed by GitHub
parent 23aada1d24
commit e5274de7ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,6 +98,9 @@ def flag_handler(self, name, flags):
if "-g" in flags:
self.debug_build = True
if name == "cflags":
if self.spec.satisfies("%oneapi@2022.2.0:"):
flags.append("-Wno-error=deprecated-non-prototype")
flags.append("-Wno-error=unused-function")
if self.spec.satisfies("%gcc@4"):
flags.append("-std=gnu99")
return (None, None, flags)