You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-17 01:12:23 +02:00
Enable float-equal and init-self compiler warnings.
No code changes were required to enable these warnings.
This commit is contained in:
@ -52,6 +52,9 @@ warning_enable = [
|
|||||||
# Warn when an if-else has identical branches
|
# Warn when an if-else has identical branches
|
||||||
'-Wduplicated-branches',
|
'-Wduplicated-branches',
|
||||||
|
|
||||||
|
# Warn if floating-point values are used in equality comparisons
|
||||||
|
'--Wfloat-equal',
|
||||||
|
|
||||||
# Warn if the format string is not a string literal and cannot be checked
|
# Warn if the format string is not a string literal and cannot be checked
|
||||||
'-Wformat-nonliteral',
|
'-Wformat-nonliteral',
|
||||||
|
|
||||||
@ -61,6 +64,9 @@ warning_enable = [
|
|||||||
# Warn if the format string requires an unsigned argument and the argument is signed and vice versa
|
# Warn if the format string requires an unsigned argument and the argument is signed and vice versa
|
||||||
'-Wformat-signedness',
|
'-Wformat-signedness',
|
||||||
|
|
||||||
|
# Warn about uninitialized variables which are initialized with themselves
|
||||||
|
'-Winit-self',
|
||||||
|
|
||||||
# Warn if a global function is defined without a previous prototype declaration
|
# Warn if a global function is defined without a previous prototype declaration
|
||||||
'-Wmissing-prototypes',
|
'-Wmissing-prototypes',
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user