Commit d4bf78b
Silence Apple Accelerate header warnings via system_header pragma
Apple's Accelerate/LAPACK/Sparse headers (pulled in through
ACCELERATE_NEW_LAPACK) trip a large, SDK-version-dependent set of
-Wpedantic/GNU-extension warnings: _Nullable/_Nonnull nullability
qualifiers, zero-arg variadic macros, extra semicolons, and more. On the
Xcode SDK this floods the build with tens of thousands of warnings from
headers we cannot fix.
Mark the Accelerate include as a system header with
`#pragma clang system_header` so all of its warnings are suppressed
regardless of which flag or SDK version produces them, while our own code
keeps full -Wpedantic strictness. cblas_wrapper.h contains nothing but
the include, so the marker is effectively scoped to Accelerate.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7e7678e commit d4bf78b
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
| |||
0 commit comments