Makefile: Enable opaque pointers mode

https://llvm.org/docs/OpaquePointers.html

Signed-off-by: Zlatan Radovanovic <zlatan.radovanovic@fet.ba>
Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
This commit is contained in:
Zlatan Radovanovic 2022-05-30 08:22:53 +02:00 committed by spakkkk
parent b597386ece
commit 2eaf0ecf44

View File

@ -532,6 +532,7 @@ CLANG_FLAGS += $(call cc-option, -Wno-misleading-indentation)
CLANG_FLAGS += $(call cc-option, -Wno-bool-operation) CLANG_FLAGS += $(call cc-option, -Wno-bool-operation)
CLANG_FLAGS += -Werror=unknown-warning-option CLANG_FLAGS += -Werror=unknown-warning-option
CLANG_FLAGS += $(call cc-option, -Wno-unsequenced) CLANG_FLAGS += $(call cc-option, -Wno-unsequenced)
CLANG_FLAGS += $(call cc-option, -opaque-pointers)
KBUILD_CFLAGS += $(CLANG_FLAGS) KBUILD_CFLAGS += $(CLANG_FLAGS)
KBUILD_AFLAGS += $(CLANG_FLAGS) KBUILD_AFLAGS += $(CLANG_FLAGS)
export CLANG_FLAGS export CLANG_FLAGS