Commit b3b53eb
[TSan] Fix warning when compiling with -Wmissing-designated-field-initializers (llvm#163401)
Currently we receive a warning when initializing a ThreadEventCallbacks
when compiling with this flag:
```
llvm-project/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp:252:3: warning: missing field 'start' initializer [-Wmissing-designated-field-initializers]
252 | };
| ^
```
This patch explicitly initializes the missing fields to null, fixing the
warning.
rdar://1620743101 parent 88a5860 commit b3b53eb
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
262 | 263 | | |
| 264 | + | |
263 | 265 | | |
264 | 266 | | |
265 | 267 | | |
| |||
0 commit comments