summaryrefslogtreecommitdiff
path: root/src/include/executor/execScan.h
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2025-09-24 08:20:23 +0900
committerMichael Paquier <michael@paquier.xyz>2025-09-24 08:20:23 +0900
commitf83fe65f3fc1cae177f6c75f7b38eb951dd217b5 (patch)
treeca3270ca8dd90272953a69c5563a8548ad99ad50 /src/include/executor/execScan.h
parentf2bae51dfd5b2edc460c86071c577a45a1acbfd7 (diff)
Fix compiler warnings in test_bitmapsetHEADorigin/masterorigin/HEADmaster
The macros doing conversions of/from "text" from/to Bitmapset were using arbitrary casts with Datum, something that is not fine since 2a600a93c7be. These macros do not actually need casts with Datum, as they are given already "text" and Bitmapset data in input. They are updated to use cstring_to_text() and text_to_cstring(), fixing the compiler warnings reported by the buildfarm. Note that appending a -m32 to gcc to trigger 32-bit builds was enough to reproduce the warnings here. While on it, outer parenthesis are added to TEXT_TO_BITMAPSET(), and inner parenthesis are removed from BITMAPSET_TO_TEXT(), to make these macros more consistent with the style used in the tree, based on suggestions by Tom Lane. Oversights in commit 00c3d87a5cab. Reported-by: Tom Lane <tgl@sss.pgh.pa.us> Author: Greg Burd <greg@burd.me> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/3027069.1758606227@sss.pgh.pa.us
Diffstat (limited to 'src/include/executor/execScan.h')
0 files changed, 0 insertions, 0 deletions