You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-05-22 10:15:16 +02:00
Enable -Wpointer-arith.
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@
|
|||||||
</release-item>
|
</release-item>
|
||||||
|
|
||||||
<release-item>
|
<release-item>
|
||||||
<p>Enable <id>-Wstrict-prototypes</id> and update all void functions to conform.</p>
|
<p>Enable <id>-Wstrict-prototypes</id> and <id>-Wpointer-arith</id> and update code to conform.</p>
|
||||||
</release-item>
|
</release-item>
|
||||||
|
|
||||||
<release-item>
|
<release-item>
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ CINCLUDE = -I. -I../libc
|
|||||||
|
|
||||||
# Compile warnings
|
# Compile warnings
|
||||||
CWARN = -Wfatal-errors -Wall -Wextra -Wwrite-strings -Wswitch-enum -Wconversion -Wformat=2 -Wformat-nonliteral \
|
CWARN = -Wfatal-errors -Wall -Wextra -Wwrite-strings -Wswitch-enum -Wconversion -Wformat=2 -Wformat-nonliteral \
|
||||||
-Wno-clobbered -Wno-missing-field-initializers -Wstrict-prototypes
|
-Wno-clobbered -Wno-missing-field-initializers -Wstrict-prototypes -Wpointer-arith
|
||||||
|
|
||||||
# Automatically generate Perl compile options for the local system
|
# Automatically generate Perl compile options for the local system
|
||||||
CPERL = `perl -MExtUtils::Embed -e ccopts`
|
CPERL = `perl -MExtUtils::Embed -e ccopts`
|
||||||
|
|||||||
@@ -371,7 +371,7 @@ sub run
|
|||||||
# ($self->{oTest}->{&TEST_VM} ne VM_CO6 && $self->{oTest}->{&TEST_VM} ne VM_U12 &&
|
# ($self->{oTest}->{&TEST_VM} ne VM_CO6 && $self->{oTest}->{&TEST_VM} ne VM_U12 &&
|
||||||
# $self->{oTest}->{&TEST_MODULE} ne 'perl' && $self->{oTest}->{&TEST_NAME} ne 'exec' ?
|
# $self->{oTest}->{&TEST_MODULE} ne 'perl' && $self->{oTest}->{&TEST_NAME} ne 'exec' ?
|
||||||
# " -Wpedantic \\\n" : '') .
|
# " -Wpedantic \\\n" : '') .
|
||||||
" -Wformat=2 -Wformat-nonliteral -Wstrict-prototypes\\\n" .
|
" -Wformat=2 -Wformat-nonliteral -Wstrict-prototypes -Wpointer-arith\\\n" .
|
||||||
" `perl -MExtUtils::Embed -e ccopts`\n" .
|
" `perl -MExtUtils::Embed -e ccopts`\n" .
|
||||||
"LDFLAGS=-lcrypto" . (vmCoverage($self->{oTest}->{&TEST_VM}) && $self->{bCoverageUnit} ? " -lgcov" : '') .
|
"LDFLAGS=-lcrypto" . (vmCoverage($self->{oTest}->{&TEST_VM}) && $self->{bCoverageUnit} ? " -lgcov" : '') .
|
||||||
(vmWithBackTrace($self->{oTest}->{&TEST_VM}) && $self->{bBackTrace} ? ' -lbacktrace' : '') .
|
(vmWithBackTrace($self->{oTest}->{&TEST_VM}) && $self->{bBackTrace} ? ' -lbacktrace' : '') .
|
||||||
|
|||||||
Reference in New Issue
Block a user