Add more missing 'do { ... } while (0)' in missing macros. Without it,
Bruce Momjian <bruce@momjian.us>
Add more missing 'do { ... } while (0)' in missing macros. Without it,
these macros fail in if/else cases:
#define X \
{ \
... \
}
{
if (...)
X;
else
...
}
with proper setup:
#define X \
do { \
... \
} while (0)
it works fine.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pgcrypto/crypt-blowfish.c | modified | +2 −2 |
| contrib/pgcrypto/rijndael.c | modified | +6 −6 |
| contrib/pg_resetxlog/pg_resetxlog.c | modified | +3 −3 |