package/mdadm: disable -Werror

Disable -Werror by setting CWFLAGS to ""
This will avoid the following build failure raised since bump to version
4.2 in commit b03fc79745:

mdadm.c: In function 'main':
mdadm.c:156:28: error: this statement may fall through [-Werror=implicit-fallthrough=]
  154 |    if (mode == ASSEMBLE || mode == BUILD ||
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/c0f216b7aadb794110409d03dcef7fa58e833cd4

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Fabrice Fontaine 2022-01-05 19:04:53 +01:00 committed by Peter Korsgaard
parent 48b77b25b7
commit 5408db0d9f

View File

@ -16,6 +16,7 @@ MDADM_BUILD_OPTS = \
CC=$(TARGET_CC) \ CC=$(TARGET_CC) \
COROSYNC=-DNO_COROSYNC \ COROSYNC=-DNO_COROSYNC \
DLM=-DNO_DLM \ DLM=-DNO_DLM \
CWFLAGS="" \
CXFLAGS="$(MDADM_CXFLAGS)" \ CXFLAGS="$(MDADM_CXFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS) -DBINDIR=\\\"/sbin\\\"" \ CPPFLAGS="$(TARGET_CPPFLAGS) -DBINDIR=\\\"/sbin\\\"" \
CHECK_RUN_DIR=0 CHECK_RUN_DIR=0