2020-05-06 07:15:09 +08:00
|
|
|
#!/bin/bash
|
2018-06-25 06:56:07 +08:00
|
|
|
|
2022-01-10 09:17:46 +08:00
|
|
|
. .github/scripts/flags.sh
|
2018-06-25 06:56:07 +08:00
|
|
|
|
|
|
|
# Add all warning flags we can.
|
|
|
|
add_flag -Wall
|
|
|
|
add_flag -Wextra
|
|
|
|
|
|
|
|
# Disable specific warning flags for both C and C++.
|
|
|
|
|
|
|
|
# struct Foo foo = {0}; is a common idiom.
|
|
|
|
add_flag -Wno-missing-field-initializers
|
|
|
|
# TODO(iphydf): Clean these up. They are likely not bugs, but still
|
|
|
|
# potential issues and probably confusing.
|
|
|
|
add_flag -Wno-sign-compare
|
|
|
|
# File transfer code has this.
|
|
|
|
add_flag -Wno-type-limits
|
|
|
|
# Callbacks often don't use all their parameters.
|
|
|
|
add_flag -Wno-unused-parameter
|