Skip to content

Commit

Permalink
Add -Wall to CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck Atkins committed Feb 23, 2021
1 parent ca7ced8 commit 0332af6
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 21 deletions.
6 changes: 3 additions & 3 deletions scripts/ci/cmake/ci-el7-gnu8-ohpc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ env_module(load hdf5)
set(ENV{CC} gcc)
set(ENV{CXX} g++)
set(ENV{FC} gfortran)
set(ENV{CFLAGS} "-Werror -Wno-error=builtin-declaration-mismatch")
set(ENV{CXXFLAGS} "-Werror -Wno-error=builtin-declaration-mismatch")
set(ENV{FFLAGS} "-Werror -Wno-error=builtin-declaration-mismatch")
set(ENV{CFLAGS} "-Werror -Wall -Wno-error=builtin-declaration-mismatch")
set(ENV{CXXFLAGS} "-Werror -Wall -Wno-error=builtin-declaration-mismatch")
set(ENV{FFLAGS} "-Werror -Wall -Wno-error=builtin-declaration-mismatch")

set(dashboard_cache "
ADIOS2_USE_BZip2:BOOL=ON
Expand Down
6 changes: 3 additions & 3 deletions scripts/ci/cmake/ci-el7-gnu8-openmpi-ohpc-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ env_module(load py3-mpi4py)
set(ENV{CC} gcc)
set(ENV{CXX} g++)
set(ENV{FC} gfortran)
set(ENV{CFLAGS} "-Werror -Wno-error=builtin-declaration-mismatch")
set(ENV{CXXFLAGS} "-Werror -Wno-error=builtin-declaration-mismatch")
set(ENV{FFLAGS} "-Werror -Wno-error=builtin-declaration-mismatch")
set(ENV{CFLAGS} "-Werror -Wall -Wno-error=builtin-declaration-mismatch")
set(ENV{CXXFLAGS} "-Werror -Wall -Wno-error=builtin-declaration-mismatch")
set(ENV{FFLAGS} "-Werror -Wall -Wno-error=builtin-declaration-mismatch")

set(dashboard_cache "
BUILD_SHARED_LIBS:BOOL=OFF
Expand Down
6 changes: 3 additions & 3 deletions scripts/ci/cmake/ci-el7-gnu8-openmpi-ohpc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ env_module(load py3-mpi4py)
set(ENV{CC} gcc)
set(ENV{CXX} g++)
set(ENV{FC} gfortran)
set(ENV{CFLAGS} "-Werror -Wno-error=builtin-declaration-mismatch")
set(ENV{CXXFLAGS} "-Werror -Wno-error=builtin-declaration-mismatch")
set(ENV{FFLAGS} "-Werror -Wno-error=builtin-declaration-mismatch")
set(ENV{CFLAGS} "-Werror -Wall -Wno-error=builtin-declaration-mismatch")
set(ENV{CXXFLAGS} "-Werror -Wall -Wno-error=builtin-declaration-mismatch")
set(ENV{FFLAGS} "-Werror -Wall -Wno-error=builtin-declaration-mismatch")

set(dashboard_cache "
ADIOS2_USE_BZip2:BOOL=ON
Expand Down
6 changes: 3 additions & 3 deletions scripts/ci/cmake/ci-el7-intel-ohpc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ env_module(load hdf5)
set(ENV{CC} icc)
set(ENV{CXX} icpc)
set(ENV{FC} ifort)
set(ENV{CFLAGS} -Werror)
set(ENV{CXXFLAGS} -Werror)
set(ENV{FFLAGS} "-warn errors")
set(ENV{CFLAGS} "-Werror -Wall")
set(ENV{CXXFLAGS} "-Werror -Wall")
set(ENV{FFLAGS} "-warn errors")

set(dashboard_cache "
ADIOS2_USE_BZip2:BOOL=ON
Expand Down
6 changes: 3 additions & 3 deletions scripts/ci/cmake/ci-el7-intel-openmpi-ohpc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ env_module(load py3-mpi4py)
set(ENV{CC} icc)
set(ENV{CXX} icpc)
set(ENV{FC} ifort)
set(ENV{CFLAGS} -Werror)
set(ENV{CXXFLAGS} -Werror)
set(ENV{FFLAGS} "-warn errors")
set(ENV{CFLAGS} "-Werror -Wall -Wall")
set(ENV{CXXFLAGS} "-Werror -Wall -Wall")
set(ENV{FFLAGS} "-warn errors")

set(dashboard_cache "
ADIOS2_USE_BZip2:BOOL=ON
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci/cmake/ci-el7-spack.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ math(EXPR N2CPUS "${NCPUS}*2")
set(ENV{CC} gcc)
set(ENV{CXX} g++)
set(ENV{FC} gfortran)
set(ENV{CFLAGS} "-Werror -Wall")
set(ENV{CXXFLAGS} "-Werror -Wall")
set(ENV{FFLAGS} "-Werror -Wall")

set(dashboard_cache "
ADIOS2_USE_BZip2:BOOL=ON
Expand Down
6 changes: 3 additions & 3 deletions scripts/ci/cmake/ci-el7.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
set(ENV{CC} gcc)
set(ENV{CXX} g++)
set(ENV{FC} gfortran)
set(ENV{CFLAGS} -Werror)
set(ENV{CXXFLAGS} -Werror)
set(ENV{FFLAGS} -Werror)
set(ENV{CFLAGS} "-Werror -Wall")
set(ENV{CXXFLAGS} "-Werror -Wall")
set(ENV{FFLAGS} "-Werror -Wall")

set(dashboard_cache "
ADIOS2_USE_BZip2:STRING=ON
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci/cmake/ci-macos1014-xcode103-ninja.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
set(ENV{CC} clang)
set(ENV{CXX} clang++)
set(ENV{FC} gfortran)
set(ENV{CFLAGS} "-Werror -Wall")
set(ENV{CXXFLAGS} "-Werror -Wall")
set(ENV{FFLAGS} "-Werror -Wall")

set(dashboard_cache "
ADIOS2_USE_Fortran:BOOL=ON
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci/cmake/ci-macos1014-xcode103-openmpi-make.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
set(ENV{CC} clang)
set(ENV{CXX} clang++)
set(ENV{FC} gfortran)
set(ENV{CFLAGS} "-Werror -Wall")
set(ENV{CXXFLAGS} "-Werror -Wall")
set(ENV{FFLAGS} "-Werror -Wall")

include(ProcessorCount)
ProcessorCount(NCPUS)
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci/cmake/ci-macos1015-xcode111-make.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
set(ENV{CC} clang)
set(ENV{CXX} clang++)
set(ENV{FC} gfortran)
set(ENV{CFLAGS} "-Werror -Wall")
set(ENV{CXXFLAGS} "-Werror -Wall")
set(ENV{FFLAGS} "-Werror -Wall")

set(dashboard_cache "
ADIOS2_USE_Fortran:BOOL=ON
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci/cmake/ci-macos1015-xcode111-openmpi-ninja.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
set(ENV{CC} clang)
set(ENV{CXX} clang++)
set(ENV{FC} gfortran)
set(ENV{CFLAGS} "-Werror -Wall")
set(ENV{CXXFLAGS} "-Werror -Wall")
set(ENV{FFLAGS} "-Werror -Wall")

include(ProcessorCount)
ProcessorCount(NCPUS)
Expand Down
6 changes: 3 additions & 3 deletions scripts/ci/cmake/ci-ubuntu1804-spack.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ math(EXPR N2CPUS "${NCPUS}*2")
set(ENV{CC} gcc)
set(ENV{CXX} g++)
set(ENV{FC} gfortran)
set(ENV{CFLAGS} "-Werror -Wno-error=builtin-declaration-mismatch")
set(ENV{CXXFLAGS} "-Werror -Wno-error=builtin-declaration-mismatch")
set(ENV{FFLAGS} "-Werror -Wno-error=builtin-declaration-mismatch")
set(ENV{CFLAGS} "-Werror -Wall -Wno-error=builtin-declaration-mismatch")
set(ENV{CXXFLAGS} "-Werror -Wall -Wno-error=builtin-declaration-mismatch")
set(ENV{FFLAGS} "-Werror -Wall -Wno-error=builtin-declaration-mismatch")

set(dashboard_cache "
ADIOS2_USE_BZip2:BOOL=ON
Expand Down

0 comments on commit 0332af6

Please sign in to comment.