Skip to content
Permalink
Browse files

Report realloc-lhs only as warning

  • Loading branch information
mkrack committed Jan 9, 2020
1 parent 597fd47 commit 11bf88ed1e2f540eae7b54c9fda0467f10b882f4
@@ -32,11 +32,12 @@ DFLAGS += -D__MPI_VERSION=3 -D__PLUMED2 -D__SPGLIB
DFLAGS += -D__parallel -D__SCALAPACK
DFLAGS += -D__CHECK_DIAG

WFLAGS = -Waliasing -Wampersand -Wc-binding-type -Wconversion
WFLAGS += -Wintrinsic-shadow -Wintrinsics-std -Wline-truncation
WFLAGS += -Wno-tabs -Wrealloc-lhs -Wtarget-lifetime -Wunderflow
WFLAGS += -Wunused-but-set-variable -Wunused-dummy-argument -Wunused-variable
WFLAGS += -Werror
WFLAGS = -Wrealloc-lhs
WFLAGS += -Werror=aliasing -Werror=ampersand -Werror=c-binding-type
WFLAGS += -Werror=conversion -Werror=intrinsic-shadow -Werror=intrinsics-std
WFLAGS += -Werror=line-truncation -Werror=tabs -Werror=target-lifetime
WFLAGS += -Werror=underflow -Werror=unused-but-set-variable
WFLAGS += -Werror=unused-dummy-argument -Werror=unused-variable

FCFLAGS = $(CFLAGS) $(DFLAGS) $(WFLAGS)
FCFLAGS += -fcheck=bounds,do,recursion,pointer -ffree-form
@@ -32,11 +32,12 @@ DFLAGS += -D__MPI_VERSION=3 -D__PLUMED2 -D__SPGLIB
DFLAGS += -D__parallel -D__SCALAPACK
DFLAGS += -D__CHECK_DIAG

WFLAGS = -Waliasing -Wampersand -Wc-binding-type -Wconversion
WFLAGS += -Wintrinsic-shadow -Wintrinsics-std -Wline-truncation
WFLAGS += -Wno-tabs -Wrealloc-lhs -Wtarget-lifetime -Wunderflow
WFLAGS += -Wunused-but-set-variable -Wunused-dummy-argument -Wunused-variable
WFLAGS += -Werror
WFLAGS = -Wrealloc-lhs
WFLAGS += -Werror=aliasing -Werror=ampersand -Werror=c-binding-type
WFLAGS += -Werror=conversion -Werror=intrinsic-shadow -Werror=intrinsics-std
WFLAGS += -Werror=line-truncation -Werror=tabs -Werror=target-lifetime
WFLAGS += -Werror=underflow -Werror=unused-but-set-variable
WFLAGS += -Werror=unused-dummy-argument -Werror=unused-variable

FCFLAGS = $(CFLAGS) $(DFLAGS) $(WFLAGS)
FCFLAGS += -fcheck=bounds,do,recursion,pointer -ffree-form
@@ -22,11 +22,12 @@ CFLAGS = -O1 -g -mtune=generic

DFLAGS = -D__FFTW3 -D__LIBINT -D__LIBXC -D__SPGLIB -D__CHECK_DIAG

WFLAGS = -Waliasing -Wampersand -Wc-binding-type -Wconversion
WFLAGS += -Wintrinsic-shadow -Wintrinsics-std -Wline-truncation
WFLAGS += -Wno-tabs -Wrealloc-lhs -Wtarget-lifetime -Wunderflow
WFLAGS += -Wunused-but-set-variable -Wunused-dummy-argument -Wunused-variable
WFLAGS += -Werror
WFLAGS = -Wrealloc-lhs
WFLAGS += -Werror=aliasing -Werror=ampersand -Werror=c-binding-type
WFLAGS += -Werror=conversion -Werror=intrinsic-shadow -Werror=intrinsics-std
WFLAGS += -Werror=line-truncation -Werror=tabs -Werror=target-lifetime
WFLAGS += -Werror=underflow -Werror=unused-but-set-variable
WFLAGS += -Werror=unused-dummy-argument -Werror=unused-variable

FCFLAGS = $(CFLAGS) $(DFLAGS) $(WFLAGS)
FCFLAGS += -fcheck=bounds,do,recursion,pointer -ffree-form
@@ -22,11 +22,12 @@ CFLAGS = -O1 -g -mtune=generic

DFLAGS = -D__FFTW3 -D__LIBINT -D__LIBXC -D__SPGLIB -D__CHECK_DIAG

WFLAGS = -Waliasing -Wampersand -Wc-binding-type -Wconversion
WFLAGS += -Wintrinsic-shadow -Wintrinsics-std -Wline-truncation
WFLAGS += -Wno-tabs -Wrealloc-lhs -Wtarget-lifetime -Wunderflow
WFLAGS += -Wunused-but-set-variable -Wunused-dummy-argument -Wunused-variable
WFLAGS += -Werror
WFLAGS = -Wrealloc-lhs
WFLAGS += -Werror=aliasing -Werror=ampersand -Werror=c-binding-type
WFLAGS += -Werror=conversion -Werror=intrinsic-shadow -Werror=intrinsics-std
WFLAGS += -Werror=line-truncation -Werror=tabs -Werror=target-lifetime
WFLAGS += -Werror=underflow -Werror=unused-but-set-variable
WFLAGS += -Werror=unused-dummy-argument -Werror=unused-variable

FCFLAGS = $(CFLAGS) $(DFLAGS) $(WFLAGS)
FCFLAGS += -fcheck=bounds,do,recursion,pointer -ffree-form

0 comments on commit 11bf88e

Please sign in to comment.
You can’t perform that action at this time.