pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix compiler warning induced by commit d8b15eeb8.
7+ messages / 1 participants
[nested] [flat]

* pgsql: Fix compiler warning induced by commit d8b15eeb8.
@ 2020-06-24 19:48 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-06-24 19:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/235c0f6eed2d9f5650f9b6ee0c51601792eff8e4

Modified Files
--------------
src/timezone/zic.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix compiler warning induced by commit d8b15eeb8.
@ 2020-06-24 19:48 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-06-24 19:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/086bef8ac8b3635e7af94ac41e92dfc016b87e90

Modified Files
--------------
src/timezone/zic.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix compiler warning induced by commit d8b15eeb8.
@ 2020-06-24 19:48 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-06-24 19:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ff28f35d2ffb3a485c45d99039a1f17c3bd2a475

Modified Files
--------------
src/timezone/zic.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix compiler warning induced by commit d8b15eeb8.
@ 2020-06-24 19:48 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-06-24 19:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/684325566d3574887082a55a1a1292cbdbef2e1c

Modified Files
--------------
src/timezone/zic.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix compiler warning induced by commit d8b15eeb8.
@ 2020-06-24 19:48 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-06-24 19:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1c21f1214767432a3980e2d056fb56a2ec078c7e

Modified Files
--------------
src/timezone/zic.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix compiler warning induced by commit d8b15eeb8.
@ 2020-06-24 19:48 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-06-24 19:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/08a2e40d1434d7775e67fd2857f9615bf60ca3b2

Modified Files
--------------
src/timezone/zic.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix compiler warning induced by commit d8b15eeb8.
@ 2020-06-24 19:48 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-06-24 19:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0d7066bc7f2010a4998f073690ea1eed2525fb60

Modified Files
--------------
src/timezone/zic.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2020-06-24 19:48 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24 19:48 pgsql: Fix compiler warning induced by commit d8b15eeb8. Tom Lane <tgl@sss.pgh.pa.us>
2020-06-24 19:48 pgsql: Fix compiler warning induced by commit d8b15eeb8. Tom Lane <tgl@sss.pgh.pa.us>
2020-06-24 19:48 pgsql: Fix compiler warning induced by commit d8b15eeb8. Tom Lane <tgl@sss.pgh.pa.us>
2020-06-24 19:48 pgsql: Fix compiler warning induced by commit d8b15eeb8. Tom Lane <tgl@sss.pgh.pa.us>
2020-06-24 19:48 pgsql: Fix compiler warning induced by commit d8b15eeb8. Tom Lane <tgl@sss.pgh.pa.us>
2020-06-24 19:48 pgsql: Fix compiler warning induced by commit d8b15eeb8. Tom Lane <tgl@sss.pgh.pa.us>
2020-06-24 19:48 pgsql: Fix compiler warning induced by commit d8b15eeb8. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox