You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-05-22 10:15:16 +02:00
Enable additional warnings for C builds.
This commit is contained in:
@@ -315,7 +315,9 @@ sub run
|
||||
$self->{oStorageTest}->put("$self->{strGCovPath}/test.c", $strTestC);
|
||||
|
||||
my $strGccCommand =
|
||||
'gcc -Wfatal-errors -std=c99 -fprofile-arcs -ftest-coverage -fPIC -O0 ' .
|
||||
'gcc -std=c99 -fprofile-arcs -ftest-coverage -fPIC -O0 ' .
|
||||
'-Wfatal-errors -Wall -Wextra -Wwrite-strings ' .
|
||||
($self->{oTest}->{&TEST_VM} ne VM_CO6 && $self->{oTest}->{&TEST_VM} ne VM_U12 ? '-Wpedantic ' : '') .
|
||||
"-I/$self->{strBackRestBase}/src -I/$self->{strBackRestBase}/test/src test.c " .
|
||||
"/$self->{strBackRestBase}/test/src/common/harnessTest.c " .
|
||||
join(' ', @stryCFile) . " -l crypto -o test";
|
||||
|
||||
Reference in New Issue
Block a user