
Enable few more important compilation flags which will consider warnings as errors. Most of these flags were configured to be only warning for mobile SPs, but for wearable SPs some of them are configured to be errors. So configure these as in common GNSS flags so that same set of flags could be applied to mobile SPs too. Fix compilation errors which were showing up, when these flags were enabled. Change-Id: I62ef74419d4416252dfc8b25251ba3a51d522bfd CRs-Fixed: 3292623
40 lines
938 B
Plaintext
40 lines
938 B
Plaintext
GNSS_CFLAGS = [
|
|
"-Werror",
|
|
"-Wformat",
|
|
"-Wformat-extra-args",
|
|
"-Wunused-label",
|
|
"-Wunused-variable",
|
|
"-Wunused-function",
|
|
"-Wimplicit-fallthrough",
|
|
"-Wno-unused-parameter",
|
|
"-Wno-error=unused-parameter",
|
|
"-Wno-error=macro-redefined",
|
|
"-Wno-error=reorder",
|
|
"-Wno-error=missing-braces",
|
|
"-Wno-error=self-assign",
|
|
"-Wno-error=enum-conversion",
|
|
"-Wno-error=logical-op-parentheses",
|
|
"-Wno-error=null-arithmetic",
|
|
"-Wno-error=null-conversion",
|
|
"-Wno-error=parentheses-equality",
|
|
"-Wno-error=undefined-bool-conversion",
|
|
"-Wno-error=tautological-compare",
|
|
"-Wno-error=switch",
|
|
]
|
|
|
|
/* Activate the following for debug purposes only,
|
|
comment out for production */
|
|
GNSS_SANITIZE_DIAG = {
|
|
/*
|
|
diag: {
|
|
cfi: true,
|
|
misc_undefined: [
|
|
"bounds",
|
|
"null",
|
|
"unreachable",
|
|
"integer",
|
|
],
|
|
},
|
|
*/
|
|
}
|