mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
meson: Downgrade unused function from error to warning in local builds
When working on systemd, it's often useful to be able to comment out a function to see how a build behaves without it. Currently, when doing this with a static function that's only used once, the build fails because the function then becomes unused. As such, Let's downgrade the unused function error to a warning in local builds.
This commit is contained in:
parent
b15f6eae42
commit
054ed43075
|
@ -348,7 +348,6 @@ possible_common_cc_flags = [
|
||||||
'-Werror=shift-count-overflow',
|
'-Werror=shift-count-overflow',
|
||||||
'-Werror=shift-overflow=2',
|
'-Werror=shift-overflow=2',
|
||||||
'-Werror=undef',
|
'-Werror=undef',
|
||||||
'-Werror=unused-function',
|
|
||||||
'-Wfloat-equal',
|
'-Wfloat-equal',
|
||||||
'-Wimplicit-fallthrough=5',
|
'-Wimplicit-fallthrough=5',
|
||||||
'-Winit-self',
|
'-Winit-self',
|
||||||
|
@ -363,6 +362,7 @@ possible_common_cc_flags = [
|
||||||
'-Wstrict-aliasing=2',
|
'-Wstrict-aliasing=2',
|
||||||
'-Wstrict-prototypes',
|
'-Wstrict-prototypes',
|
||||||
'-Wsuggest-attribute=noreturn',
|
'-Wsuggest-attribute=noreturn',
|
||||||
|
'-Wunused-function',
|
||||||
'-Wwrite-strings',
|
'-Wwrite-strings',
|
||||||
|
|
||||||
# negative arguments are correctly detected starting with meson 0.46.
|
# negative arguments are correctly detected starting with meson 0.46.
|
||||||
|
|
Loading…
Reference in a new issue