1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00

Enable float-equal and init-self compiler warnings.

No code changes were required to enable these warnings.
This commit is contained in:
David Steele 2024-10-29 14:15:12 +02:00
parent 98670aee89
commit ed39078068

View File

@ -52,6 +52,9 @@ warning_enable = [
# Warn when an if-else has identical 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
'-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
'-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
'-Wmissing-prototypes',