summaryrefslogtreecommitdiff
path: root/src/backend/commands/amcmds.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-06-24 15:47:30 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-06-24 15:47:59 -0400
commit684325566d3574887082a55a1a1292cbdbef2e1c (patch)
tree516670e674fca846c041986b9332bf836f516329 /src/backend/commands/amcmds.c
parent5c215c941c3f6d6d2f5faf7bef6262373594977c (diff)
Fix compiler warning induced by commit d8b15eeb8.
I forgot that INT64_FORMAT can't be used with sscanf on Windows. Use the same trick of sscanf'ing into a temp variable as we do in some other places in zic.c. The upstream IANA code avoids the portability problem by relying on <inttypes.h>'s SCNdFAST64 macro. Once we're requiring C99 in all branches, we should do likewise and drop this set of diffs from upstream. For now, though, a hack seems fine, since we do not actually care about leapseconds anyway. Discussion: https://postgr.es/m/4e5d1a5b-143e-e70e-a99d-a3b01c1ae7c3@2ndquadrant.com
Diffstat (limited to 'src/backend/commands/amcmds.c')
0 files changed, 0 insertions, 0 deletions