blob: 158128bb9732c2e404c9168cae033a95a028d305 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
ifeq ($(CONFIG_VIDEO_EXYNOS_ASTC), y)
# only build this if both configs are defined
ifeq ($(CONFIG_SOC_EXYNOS9810), y)
obj-y += astc-exynos9810-workaround.o
endif
obj-y += astc-core.o astc-helper.o
endif
UBSAN_SANITIZE := y
KASAN_SANITIZE := y
# ccflags-y := -Wall -Wextra -Wtype-limits -Wstrict-overflow=5 -Wlogical-op -Wjump-misses-init -Wformat=2 -Werror=implicit-function-declaration -Werror=strict-prototypes -Werror=parentheses -Werror=undef -Wfloat-equal -Wconversion
#
# requires newer gcc
# ccflags-y := -Wnull-dereference -Wshift-overflow=2 -Wduplicated-branches
#
# To filter out warnings from headers, add the following lines at the beginning of the source files
# #pragma GCC diagnostic push
# #pragma GCC diagnostic ignored "-Wunused-parameter"
# #pragma GCC diagnostic ignored "-Wsign-conversion"
# #pragma GCC diagnostic ignored "-Wconversion"
# #pragma GCC diagnostic ignored "-Wsign-compare"
# #pragma GCC diagnostic ignored "-Wmissing-field-initializers"
# #pragma GCC diagnostic ignored "-Wignored-qualifiers"
# <INSERT INCLUDES HERE>
# #pragma GCC diagnostic pop
#CFLAGS_astc-core.o := -Wpadded
#CFLAGS_astc-helper.o := -Wpadded
|