Skip to content
Snippets Groups Projects
Commit f8caf13c authored by Maxim Menshikov's avatar Maxim Menshikov
Browse files

easy-soc-libs: start using more GCC diagnostics

parent 703be564
No related branches found
No related tags found
1 merge request!282easy-soc-libs: Enable errors instead of warnings, fix warnings, enable static analysis for libqos/libeasy
DIAG_WALL_CFLAGS = -Waddress -Warray-bounds=1 -Warray-compare -Warray-parameter=2 -Wbool-compare -Wbool-operation -Wchar-subscripts -Wcomment -Wdangling-pointer=2 -Wduplicate-decl-specifier -Wenum-compare -Wenum-int-mismatch -Wformat -Wformat-overflow -Wformat-truncation -Wint-in-bool-context -Wimplicit -Wimplicit-int -Wimplicit-function-declaration -Winit-self -Wlogical-not-parentheses -Wmain -Wmaybe-uninitialized -Wmemset-elt-size -Wmemset-transposed-args -Wmisleading-indentation -Wmismatched-dealloc -Wmismatched-new-delete -Wmissing-attributes -Wmissing-braces -Wmultistatement-macros -Wnarrowing -Wnonnull -Wnonnull-compare -Wopenmp-simd -Wparentheses -Wpessimizing-move -Wpointer-sign -Wrange-loop-construct -Wreorder -Wrestrict -Wreturn-type -Wsequence-point -Wsign-compare -Wsizeof-array-div -Wsizeof-pointer-div -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstrict-overflow=1 -Wswitch -Wtautological-compare -Wtrigraphs -Wuninitialized -Wunknown-pragmas -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Wuse-after-free=3 -Wvla-parameter -Wvolatile-register-var -Wzero-length-bounds
DIAG_CFLAGS = $(DIAGNOSTIC_WALL_CFLAGS) -Wshadow -Wdouble-promotion -Wformat=2 -Wundef -fno-common -Wconversion -Wstrict-prototypes -Wno-declaration-after-statement
DIAG_ERROR_CFLAG
\ No newline at end of file
-include ../Makefile.diag.inc
LIBDSL = libdsl.so LIBDSL = libdsl.so
CFLAGS += $(DIAG_CFLAGS) -Werror
HEADER_DEPS := xdsl.h common.h xtm.h HEADER_DEPS := xdsl.h common.h xtm.h
ifeq ($(PLATFORM),BROADCOM) ifeq ($(PLATFORM),BROADCOM)
......
CC = gcc CC = gcc
-include ../Makefile.diag.inc
CFLAGS += $(DIAG_CFLAGS) -Werror
#CFLAGS += -O2 -Wall -g -fvisibility=hidden #CFLAGS += -O2 -Wall -g -fvisibility=hidden
LIBEASY_CFLAGS = -fvisibility=hidden LIBEASY_CFLAGS = -fvisibility=hidden
......
CC = gcc CC = gcc
CFLAGS = -O2 -Wall -g
-include ../Makefile.diag.inc
CFLAGS = -O2 -g $(DIAG_CFLAGS) -Werror
LIBETH_CFLAGS += -I. -I../libeasy LIBETH_CFLAGS += -I. -I../libeasy
LIBETH_LDFLAGS += -L../libeasy LIBETH_LDFLAGS += -L../libeasy
......
CC = gcc CC = gcc
CFLAGS = -O2 -Wall -g
-include ../Makefile.diag.inc
CFLAGS = -O2 -g $(DIAG_CFLAGS) -Werror
LIBQOS_CFLAGS += -I./include -I../libeasy LIBQOS_CFLAGS += -I./include -I../libeasy
LIBQOS_LDFLAGS += -L../libeasy LIBQOS_LDFLAGS += -L../libeasy
......
CC ?= gcc CC ?= gcc
CFLAGS += -O2 -Wall -g
-include ../Makefile.diag.inc
CFLAGS = -O2 -g $(DIAG_CFLAGS) -Werror
LIBWIFI_CFLAGS += -I. -I../libeasy LIBWIFI_CFLAGS += -I. -I../libeasy
LIBWIFI_LDFLAGS += -L../libeasy LIBWIFI_LDFLAGS += -L../libeasy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment