From b9a519190d7162aae01b7b6bf6637e2f46dd5581 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Fri, 23 Oct 2020 10:49:15 -0700 Subject: [PATCH] Only supress implitic fallthrough on GCC 7 --- .github/workflows/ci.yml | 2 +- src/lzf_d.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8da286152..be2be1789 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/src/lzf_d.c b/src/lzf_d.c index d44bfcc8d..5f55d471d 100644 --- a/src/lzf_d.c +++ b/src/lzf_d.c @@ -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