Skip to content

Commit

Permalink
Fallthrough: ICC Warning (AMReX-Codes#1352)
Browse files Browse the repository at this point in the history
## Summary

`gnu::fallthrough` is not defined with ICC 20.2.1.20200602 and throws a warning at compile-time in ParamsParse.

## Additional background

## Checklist

The proposed changes:
- [x] fix a bug or incorrect behavior in AMReX
- [ ] add new capabilities to AMReX
- [ ] changes answers in the test suite to more than roundoff level
- [ ] are likely to significantly affect the results of downstream AMReX users
- [ ] are described in the proposed changes to the AMReX documentation, if appropriate
  • Loading branch information
ax3l authored and dwillcox committed Oct 3, 2020
1 parent 5a0ec54 commit 4fa8a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_Extension.H
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
#define AMREX_FALLTHROUGH [[fallthrough]]
#elif defined(__clang__)
#define AMREX_FALLTHROUGH [[clang::fallthrough]]
#elif defined(__GNUC__) && (__GNUC__ >= 7)
#elif defined(__GNUC__) && (__GNUC__ >= 7) && !defined(__INTEL_COMPILER)
#define AMREX_FALLTHROUGH [[gnu::fallthrough]]
#else
#define AMREX_FALLTHROUGH ((void)0)
Expand Down

0 comments on commit 4fa8a77

Please sign in to comment.