mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-19 07:31:35 +01:00
28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
From c52875c963eade8c7c10d06a9e5d6dd53e60e518 Mon Sep 17 00:00:00 2001
|
|
From: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
Date: Mon, 16 Nov 2020 09:27:56 +0000
|
|
Subject: [PATCH] Disable Werror and O2
|
|
|
|
---
|
|
Makefile.inc | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/Makefile.inc b/Makefile.inc
|
|
index e05f3a9..d523e6f 100644
|
|
--- a/Makefile.inc
|
|
+++ b/Makefile.inc
|
|
@@ -93,8 +93,8 @@ STACKPROT := $(call TEST_CC_OPTION,-fstack-protector-strong,-fstack-protector)
|
|
ERROR_DISCARDED_QUALIFIERS := $(call TEST_CC_OPTION,-Werror=discarded-qualifiers,)
|
|
WNOCLOBBERED := $(call TEST_CC_OPTION,-Wno-clobbered -Wno-error=clobbered,)
|
|
|
|
-OPTFLAGS := -O2 -g $(STACKPROT) --param=ssp-buffer-size=4
|
|
-WARNFLAGS := -Werror -Wall -Wextra -Wformat=2 -Werror=implicit-int \
|
|
+OPTFLAGS := -g $(STACKPROT) --param=ssp-buffer-size=4
|
|
+WARNFLAGS := -Wall -Wextra -Wformat=2 -Werror=implicit-int \
|
|
-Werror=implicit-function-declaration -Werror=format-security \
|
|
$(WNOCLOBBERED) -Werror=cast-qual $(ERROR_DISCARDED_QUALIFIERS)
|
|
CPPFLAGS := -Wp,-D_FORTIFY_SOURCE=2
|
|
--
|
|
2.28.0
|
|
|