forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2cf9bda
committed
Fix type confusion in guc_var_compare()
Before this change guc_var_compare() cast the input arguments toconst struct config_generic *. That's not quite right however, as the inputon one side is often just a char * on one side.Instead just use char *, the first field in config_generic.This fixes a -Warray-bounds warning with some versions of gcc. While thewarning is only known to be triggered for <= 15, the issue the warning pointsout seems real, so apply the fix everywhere.Author: Nazir Bilal Yavuz <byavuz81@gmail.com>Reported-by: Erik Rijkers <er@xs4all.nl>Suggested-by: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/a74a1a0d-0fd2-3649-5224-4f754e8f91aa%40xs4all.nl1 parentb020a86 commit2cf9bda
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5291 | 5291 |
| |
5292 | 5292 |
| |
5293 | 5293 |
| |
5294 |
| - | |
5295 |
| - | |
| 5294 | + | |
| 5295 | + | |
5296 | 5296 |
| |
5297 |
| - | |
| 5297 | + | |
5298 | 5298 |
| |
5299 | 5299 |
| |
5300 | 5300 |
| |
|
0 commit comments
Comments
(0)