forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf3834c1
committed
Fix C23 compiler warning
The approach of declaring a function pointer with an empty argumentlist and hoping that the compiler will not complain about casting itto another type no longer works with C23, because foo() is nowequivalent to foo(void).We don't need to do this here. With a few struct forward declarationswe can supply a correct argument list without having to pull inanother header file.(This is the only new warning with C23. Together with the previousfixa67a496, this makes the whole code compile cleanly under C23.)Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://www.postgresql.org/message-id/flat/95c6a9bf-d306-43d8-b880-664ef08f2944%40eisentraut.orgDiscussion:https://www.postgresql.org/message-id/flat/87o72eo9iu.fsf%40gentoo.org1 parentad89c8b commitf3834c1
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1101 | 1101 |
| |
1102 | 1102 |
| |
1103 | 1103 |
| |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
1104 | 1107 |
| |
1105 | 1108 |
| |
1106 | 1109 |
| |
| |||
1200 | 1203 |
| |
1201 | 1204 |
| |
1202 | 1205 |
| |
1203 |
| - | |
| 1206 | + | |
1204 | 1207 |
| |
1205 | 1208 |
| |
1206 | 1209 |
| |
|
0 commit comments
Comments
(0)