Commit ee1ff6f
validation_layer_generator: do not check static array addresses
The generator creates the same validation code for a static array
of structs than for a pointer to a struct (used for dynamically
allocated arrays): it first checks if the content of the member is not
null.
Given that static array addresses are always not null, GCC (12.2.1) and
CLANG (16.0.1) emit pointer-bool-conversion warnings.1 parent 2c252a3 commit ee1ff6f
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1437 | 1437 | | |
1438 | 1438 | | |
1439 | 1439 | | |
1440 | | - | |
1441 | | - | |
1442 | | - | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
1443 | 1444 | | |
1444 | 1445 | | |
1445 | 1446 | | |
| |||
1841 | 1842 | | |
1842 | 1843 | | |
1843 | 1844 | | |
1844 | | - | |
1845 | 1845 | | |
1846 | | - | |
1847 | | - | |
| 1846 | + | |
1848 | 1847 | | |
1849 | 1848 | | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
1850 | 1853 | | |
1851 | 1854 | | |
1852 | 1855 | | |
| |||
0 commit comments