Commit fa53cfa
committed
[runtime] Fix -Wcast-function-type-mismatch warnings; NFC (1/4)
Reduction helpers in the Classic Flang runtime for different data types have
different function signatures, yet they are stored in tables with generic
types (e.g. void (*)())and are often compared with each other in contexts
requiring explicit casts. As of Clang 19, this type of code has resulted in
new compile-time warnings. This patch fixes the cases where the generic
void (*)() type is not used, and explicit casts are no longer sufficient to
silence the compiler.1 parent b3f00e5 commit fa53cfa
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | | - | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
113 | | - | |
114 | | - | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | | - | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
0 commit comments