Commit 0193af3
authored
fix: suppress warning around a constructor function (#2840)
## Summary:
Xcode 26.4 now warns about functions annotated as constructors if the
-Wglobal-constructors flag is enabled. We want that on as an error by
default so that we don't trivially get new ones added, but we need to
suppress the warning around existing code. Add this to ReactNative.
<!-- Explain the **motivation** for making this change. What existing
problem does the pull request solve? -->
## Test Plan
No testing needed; this only suppresses a compiler warning in a narrow
location.
<!-- Demonstrate the code is solid. Example: The exact commands you ran
and their output, screenshots / videos if the pull request changes the
user interface. -->1 parent 5945ce1 commit 0193af3
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
97 | | - | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
0 commit comments