Commit cd394d6
authored
Fix newly emerged warning from clang (#608)
and a warning from a recent code change in toktx.cc.
The new clang warning has appeared, without a bump in the LLVM version number, because Emscripten releases pull the top of tree LLVM and our CI gets the latest Emscripten release. LLVM is in the final throes of developing their 15.0.0 release.
As there is no version number change we've had to use the `__has_warning` pre-processor directive and thus modify the offending BasisU file.
Note that MS VC++ also has `__has_warning` but with a different syntax so this fix uses the directive only when `__clang__` is defined.1 parent ee40449 commit cd394d6
2 files changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | 650 | | |
654 | 651 | | |
655 | 652 | | |
| |||
947 | 944 | | |
948 | 945 | | |
949 | 946 | | |
950 | | - | |
951 | | - | |
952 | 947 | | |
953 | 948 | | |
954 | 949 | | |
| |||
1290 | 1285 | | |
1291 | 1286 | | |
1292 | 1287 | | |
1293 | | - | |
| 1288 | + | |
1294 | 1289 | | |
1295 | | - | |
| 1290 | + | |
1296 | 1291 | | |
1297 | 1292 | | |
1298 | 1293 | | |
| |||
0 commit comments