unikraft / lib-musl

musl: A C standard library
Other
8 stars 27 forks source link

Makefile.uk: Silence warnings #61

Closed andreittr closed 1 year ago

andreittr commented 1 year ago

This commit changes several warning flags: -Wno-error=sign-compare removed -Wno-unused-value relegated to the glue code -Wno-cast-function-type is sent to clang as well as GCC -Wno-macro-redefined and -Wno-string-plus-int added for clang -Wno-unused added for the entire library -K&R-style declaration warnings silenced by -Wno-old-style-declaration (GCC) or -Wno-deprecated-non-prototype (clang) -Wno-unused-command-line-argument to silence assembler

Also sets warning flags only if supported by the clang version in use; depends on PR#983.