Files
pmaports-rtwo/device/downstream/linux-lenovo-tb3-710i/use-gnu89-explicitly.patch
T
Sreeranj Krishna MandFerass El Hafidi db020e37a6 lenovo-tb3-710i: new device
Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: Ferass El Hafidi <funderscore@postmarketos.org>

Edit APKBUILD

Changed deviceinfo

aport lint

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7687>
2026-01-09 15:15:22 +00:00

30 lines
1.1 KiB
Diff

Author: Antoine Fontaine <antoine.fontaine@epfl.ch>
Date: Wed Nov 27 01:21:35 2019 +0100
applied patch to use gnu89 standard explicitly.
I needed to do so manually because the makefile is changed by downstream.
diff --git a/Makefile b/Makefile
index 917f5c50..68453b1a 100644
--- a/Makefile
+++ b/Makefile
@@ -241,7 +241,7 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
HOSTCC = gcc
HOSTCXX = g++
-HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer
+HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89
HOSTCXXFLAGS = -O2
# Decide whether to build built-in, modular, or both.
@@ -374,7 +374,8 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-Werror-implicit-function-declaration \
-Wno-format-security \
-fno-delete-null-pointer-checks \
- -Werror=format -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
+ -Werror=format -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast \
+ -std=gnu89
KBUILD_AFLAGS_KERNEL :=
KBUILD_CFLAGS_KERNEL :=