diff --git a/doc/xml/release.xml b/doc/xml/release.xml index 5b226b7fe..3f6888ac6 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -94,7 +94,7 @@ -

Enable -Wstrict-prototypes and update all void functions to conform.

+

Enable -Wstrict-prototypes and -Wpointer-arith and update code to conform.

diff --git a/src/Makefile b/src/Makefile index 24a9ade67..1d02e2143 100644 --- a/src/Makefile +++ b/src/Makefile @@ -18,7 +18,7 @@ CINCLUDE = -I. -I../libc # Compile warnings 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 CPERL = `perl -MExtUtils::Embed -e ccopts` diff --git a/test/lib/pgBackRestTest/Common/JobTest.pm b/test/lib/pgBackRestTest/Common/JobTest.pm index 0bb892522..343177510 100644 --- a/test/lib/pgBackRestTest/Common/JobTest.pm +++ b/test/lib/pgBackRestTest/Common/JobTest.pm @@ -371,7 +371,7 @@ sub run # ($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' ? # " -Wpedantic \\\n" : '') . - " -Wformat=2 -Wformat-nonliteral -Wstrict-prototypes\\\n" . + " -Wformat=2 -Wformat-nonliteral -Wstrict-prototypes -Wpointer-arith\\\n" . " `perl -MExtUtils::Embed -e ccopts`\n" . "LDFLAGS=-lcrypto" . (vmCoverage($self->{oTest}->{&TEST_VM}) && $self->{bCoverageUnit} ? " -lgcov" : '') . (vmWithBackTrace($self->{oTest}->{&TEST_VM}) && $self->{bBackTrace} ? ' -lbacktrace' : '') .