summaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorAndres Freund2024-07-15 16:26:02 +0000
committerAndres Freund2024-07-15 16:26:02 +0000
commit2ad3b9350f7338b9ba0327ccd307a0fbba2208dc (patch)
treeb25f2e81d790a8c42239cf72575b5aafe6af7098 /contrib/postgres_fdw/postgres_fdw.c
parent8fc4876147fb62825cd27712d25f90a4eebf44fb (diff)
Fix type confusion in guc_var_compare()
Before this change guc_var_compare() cast the input arguments to const struct config_generic *. That's not quite right however, as the input on 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 the warning is only known to be triggered for <= 15, the issue the warning points out seems real, so apply the fix everywhere. Author: Nazir Bilal Yavuz <[email protected]> Reported-by: Erik Rijkers <[email protected]> Suggested-by: Andres Freund <[email protected]> Discussion: https://postgr.es/m/a74a1a0d-0fd2-3649-5224-4f754e8f91aa%40xs4all.nl
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions