Saurabh Srivastava | 3f91528 | 2019-12-18 14:26:29 +0530 | [diff] [blame] | 1 | GNSS_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 */ |
| 20 | GNSS_SANITIZE = { |
haohuang | 377cdcf | 2020-02-19 18:11:07 +0800 | [diff] [blame] | 21 | /* address: true,*/ |
Saurabh Srivastava | 3f91528 | 2019-12-18 14:26:29 +0530 | [diff] [blame] | 22 | cfi: true, |
| 23 | misc_undefined: [ |
Saurabh Srivastava | 3f91528 | 2019-12-18 14:26:29 +0530 | [diff] [blame] | 24 | "bounds", |
| 25 | "null", |
| 26 | "unreachable", |
| 27 | "integer", |
| 28 | ], |
Saurabh Srivastava | 3f91528 | 2019-12-18 14:26:29 +0530 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | /* Activate the following for debug purposes only, |
| 32 | comment out for production */ |
| 33 | GNSS_SANITIZE_DIAG = { |
| 34 | /* |
| 35 | diag: { |
| 36 | cfi: true, |
| 37 | misc_undefined: [ |
Saurabh Srivastava | 3f91528 | 2019-12-18 14:26:29 +0530 | [diff] [blame] | 38 | "bounds", |
| 39 | "null", |
| 40 | "unreachable", |
| 41 | "integer", |
| 42 | ], |
| 43 | }, |
| 44 | */ |
| 45 | } |