1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-18 04:58:51 +02:00

Remove compiler warnings that are not valid for u16.

This commit is contained in:
David Steele 2018-09-15 08:23:55 -04:00
parent c49eaec776
commit 31cdd9d20b
2 changed files with 7 additions and 1 deletions

View File

@ -109,6 +109,10 @@
<p>Don't perform valgrind when requested.</p>
</release-item>
<release-item>
<p>Remove compiler warnings that are not valid for u16.</p>
</release-item>
<release-item>
<p>Fix typo in unit test error messages, EXECTED => EXPECTED.</p>
</release-item>

View File

@ -364,7 +364,9 @@ sub run
"CFLAGS=-I. -std=c99 -fPIC -g" . ($self->{bProfile} ? " -pg" : '') . "\\\n" .
" -Werror -Wfatal-errors -Wall -Wextra -Wwrite-strings -Wno-clobbered -Wswitch-enum -Wconversion \\\n" .
($self->{oTest}->{&TEST_VM} eq VM_U16 || $self->{oTest}->{&TEST_VM} eq VM_U18 ?
" -Wformat-signedness -Wduplicated-branches -Wduplicated-cond \\\n" : '') .
" -Wformat-signedness \\\n" : '') .
($self->{oTest}->{&TEST_VM} eq VM_U18 ?
" -Wduplicated-branches -Wduplicated-cond \\\n" : '') .
# This warning appears to be broken on U12 even though the functionality is fine
($self->{oTest}->{&TEST_VM} eq VM_U12 || $self->{oTest}->{&TEST_VM} eq VM_CO6 ?
" -Wno-missing-field-initializers \\\n" : '') .