Skip to content

Commit

Permalink
Added -Werror for const error issue with LLVM underneath gcc on Mac.
Browse files Browse the repository at this point in the history
Former-commit-id: 8eb960d5fd9d5358845c6bae707a5ab44f5e1605
  • Loading branch information
sameershende committed Aug 7, 2018
1 parent a577fea commit 045eebe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -6987,6 +6987,10 @@ if [ "x$mpiinc" != "x" -o "x$mpilib" != "x" -o $mpi = yes ] ; then
mpiwarnings="-qhalt=w"
fi
if [ $c_compiler = "clang" -o $c_compiler = "armclang" ]
then
mpiwarnings="-Werror"
fi
if [ $c_compiler = "gcc" -a $machine = apple ]
then
mpiwarnings="-Werror"
fi
Expand Down

0 comments on commit 045eebe

Please sign in to comment.