Skip to content

Commit

Permalink
fix a wrong clang flag (AMReX-Codes#1194)
Browse files Browse the repository at this point in the history
* fix a wrong clang flag

* fix a warning
  • Loading branch information
WeiqunZhang authored and dwillcox committed Oct 3, 2020
1 parent 76a39d7 commit 02ae162
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Src/LinearSolvers/MLMG/AMReX_MLNodeLaplacian.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1836,7 +1836,7 @@ MLNodeLaplacian::compSyncResidualCoarse (MultiFab& sync_resid, const MultiFab& a
if (Gpu::inLaunchRegion()) {
AMREX_ASSERT(ccbxg1 == crse_cc_mask[mfi].box());
has_fine = Reduce::AnyOf(ccbxg1,
[cccmsk,nonowner] AMREX_GPU_DEVICE (int i, int j, int k) noexcept -> bool
[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept -> bool
{
return cccmsk(i,j,k) == nonowner;
});
Expand Down
2 changes: 1 addition & 1 deletion Tools/GNUMake/comps/llvm.mak
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ endif
ifeq ($(WARN_ALL),TRUE)
warning_flags = -Wall -Wextra -Wno-sign-compare -Wunreachable-code -Wnull-dereference
warning_flags += -Wfloat-conversion -Wextra-semi
warning_flags += -Wno-pass-failed=loop-vectorize # disable this warning
warning_flags += -Wno-pass-failed # disable this warning

ifneq ($(USE_CUDA),TRUE)
warning_flags += -Wpedantic
Expand Down

0 comments on commit 02ae162

Please sign in to comment.