Only supress implitic fallthrough on GCC 7

This commit is contained in:
Madelyn Olson 2020-10-23 10:49:15 -07:00 committed by Madelyn Olson
parent 4d1120f5fd
commit dac26729a9
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: make
run: make
run: make REDIS_CFLAGS='-Werror'
build-macos-latest:
runs-on: macos-latest

View File

@ -52,7 +52,7 @@
#endif
#endif
#if defined(__GNUC__) && __GNUC__ >= 5
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif