blob: ea0d991cc2d6eeecba4180928161bc8d4575cdc0 [file] [log] [blame]
Saurabh Srivastava3f915282019-12-18 14:26:29 +05301GNSS_CFLAGS = [
2 "-Werror",
3 "-Wno-error=unused-parameter",
4 "-Wno-error=macro-redefined",
5 "-Wno-error=reorder",
6 "-Wno-error=missing-braces",
7 "-Wno-error=self-assign",
8 "-Wno-error=enum-conversion",
9 "-Wno-error=logical-op-parentheses",
10 "-Wno-error=null-arithmetic",
11 "-Wno-error=null-conversion",
12 "-Wno-error=parentheses-equality",
13 "-Wno-error=undefined-bool-conversion",
14 "-Wno-error=tautological-compare",
15 "-Wno-error=switch",
16 "-Wno-error=date-time",
17]
18
19/* Activate the following for regression testing */
20GNSS_SANITIZE = {
haohuang377cdcf2020-02-19 18:11:07 +080021/* address: true,*/
Saurabh Srivastava3f915282019-12-18 14:26:29 +053022 cfi: true,
23 misc_undefined: [
Saurabh Srivastava3f915282019-12-18 14:26:29 +053024 "bounds",
25 "null",
26 "unreachable",
27 "integer",
28 ],
Saurabh Srivastava3f915282019-12-18 14:26:29 +053029}
30
31/* Activate the following for debug purposes only,
32 comment out for production */
33GNSS_SANITIZE_DIAG = {
34/*
35 diag: {
36 cfi: true,
37 misc_undefined: [
Saurabh Srivastava3f915282019-12-18 14:26:29 +053038 "bounds",
39 "null",
40 "unreachable",
41 "integer",
42 ],
43 },
44*/
45}