Skip to contentSkip to conversation

package/mdadm: disable -Werror

PATCH In review Fabrice Fontaine 2 participants 2 messages Jan 5, 2022 – Jan 7, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 b03fc7974536378ba102418451ba7e9801bc6251:

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

---
 package/mdadm/mdadm.mk | 1 +
 1 file changed, 1 insertion(+)
package/mdadm/mdadm.mk +1 -0
index 6ee0bb60c9..0a2eb4e5bd 100644
@@ -16,6 +16,7 @@ MDADM_BUILD_OPTS = \
 	CC=$(TARGET_CC) \
 	COROSYNC=-DNO_COROSYNC \
 	DLM=-DNO_DLM \
+	CWFLAGS="" \
 	CXFLAGS="$(MDADM_CXFLAGS)" \
 	CPPFLAGS="$(TARGET_CPPFLAGS) -DBINDIR=\\\"/sbin\\\"" \
 	CHECK_RUN_DIR=0
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

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

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

Quoted 6 lines
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot