Commit 4db2bea
[build flags] enable more warnings in compile flags (iree-org#22240)
Enable more warnings during compilation by removing some of of the
-Wno-* compile flags:
```
-Wno-ambiguous-member-template
-Wno-char-subscripts
-Wno-gnu-alignof-expression
-Wno-gnu-variable-sized-type-not-at-end
-Wno-ignored-optimization-argument
-Wno-invalid-source-encoding
-Wno-mismatched-tags
-Wno-missing-braces
-Wno-pointer-sign
-Wno-reserved-user-defined-literal
-Wno-return-type-c-linkage
-Wno-self-assign-overloaded
-Wno-sign-compare
-Wno-signed-unsigned-wchar
-Wno-strict-overflow
-Wno-trigraphs
-Wno-unknown-pragmas
-Wno-unknown-warning-option
-Wno-unused-command-line-argument
-Wno-unused-local-typedef
-Wno-user-defined-warnings
```
The -Wno-* flags used by bazel had been slightly different from the ones
used by cmake. This change re-aligns this.
A few code locations have been adapted to compile with the additional
warnings enabled.
Signed-off-by: Stefan Schuermans <[email protected]>1 parent 56b149d commit 4db2bea
2 files changed
+0
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | 109 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 110 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | 111 | | |
129 | 112 | | |
130 | | - | |
131 | 113 | | |
132 | | - | |
133 | 114 | | |
134 | 115 | | |
135 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | | - | |
174 | 172 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | 173 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | 174 | | |
193 | 175 | | |
194 | | - | |
195 | 176 | | |
196 | | - | |
197 | | - | |
198 | 177 | | |
199 | 178 | | |
200 | 179 | | |
| |||
0 commit comments