Commit 9faa0c2
committed
Fix strict C89 compilation, CI amalgamation path, and test leaks
This commit resolves several issues ensuring standard C89 compliance:
- Added valgrind.supp for mock_strerror
- Updated the CMake test configuration to correctly point to the amalgamation file
- Wrapped format variable arguments ignoring format-security checks in safe regions
- Fixed unused variable warnings in vswprintf_s fallbacks
- Skipped swprintf_s tests when lacking native runtime support
- Utilized __extension__ typedefs and pragmas to silence GCC -Wlong-long warnings in core string definitions and stb_sprintf1 parent 03baca9 commit 9faa0c2
6 files changed
Lines changed: 44 additions & 1 deletion
File tree
- c89stringutils
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
211 | 216 | | |
212 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
213 | 221 | | |
214 | 222 | | |
215 | 223 | | |
| |||
473 | 481 | | |
474 | 482 | | |
475 | 483 | | |
| 484 | + | |
476 | 485 | | |
| 486 | + | |
477 | 487 | | |
478 | 488 | | |
479 | 489 | | |
| |||
489 | 499 | | |
490 | 500 | | |
491 | 501 | | |
| 502 | + | |
492 | 503 | | |
493 | 504 | | |
494 | 505 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
199 | 203 | | |
200 | 204 | | |
201 | 205 | | |
202 | 206 | | |
| 207 | + | |
203 | 208 | | |
204 | 209 | | |
205 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
2 | 8 | | |
3 | 9 | | |
4 | 10 | | |
| |||
224 | 230 | | |
225 | 231 | | |
226 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
227 | 238 | | |
228 | 239 | | |
229 | 240 | | |
| |||
1905 | 1916 | | |
1906 | 1917 | | |
1907 | 1918 | | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
1908 | 1922 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
303 | 307 | | |
304 | 308 | | |
305 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments