pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Suppress implicit-conversion warnings seen with newer clang vers 3+ messages / 1 participants [nested] [flat]
* pgsql: Suppress implicit-conversion warnings seen with newer clang vers @ 2017-03-28 17:16 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2017-03-28 17:16 UTC (permalink / raw) To: pgsql-committers Suppress implicit-conversion warnings seen with newer clang versions. We were assigning values near 255 through "char *" pointers. On machines where char is signed, that's not entirely kosher, and it's reasonable for compilers to warn about it. A better solution would be to change the pointer type to "unsigned char *", but that would be vastly more invasive. For the moment, let's just apply this simple backpatchable solution. Aleksander Alekseev Discussion: https://postgr.es/m/20170220141239.GD12278@e733.localdomain Discussion: https://postgr.es/m/2839.1490714708@sss.pgh.pa.us Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/16e815279135ea70616692c8bade43d9f1e1d05e Modified Files -------------- src/backend/access/transam/xlog.c | 2 +- src/backend/access/transam/xloginsert.c | 6 +++--- src/bin/pg_resetxlog/pg_resetxlog.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Suppress implicit-conversion warnings seen with newer clang vers @ 2017-03-28 17:16 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2017-03-28 17:16 UTC (permalink / raw) To: pgsql-committers Suppress implicit-conversion warnings seen with newer clang versions. We were assigning values near 255 through "char *" pointers. On machines where char is signed, that's not entirely kosher, and it's reasonable for compilers to warn about it. A better solution would be to change the pointer type to "unsigned char *", but that would be vastly more invasive. For the moment, let's just apply this simple backpatchable solution. Aleksander Alekseev Discussion: https://postgr.es/m/20170220141239.GD12278@e733.localdomain Discussion: https://postgr.es/m/2839.1490714708@sss.pgh.pa.us Branch ------ REL9_6_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/8433e0b40e0d840b8daa80eb9788fafcf2dc5aab Modified Files -------------- src/backend/access/transam/xlog.c | 2 +- src/backend/access/transam/xloginsert.c | 6 +++--- src/bin/pg_resetxlog/pg_resetxlog.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Suppress implicit-conversion warnings seen with newer clang vers @ 2017-03-28 17:16 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2017-03-28 17:16 UTC (permalink / raw) To: pgsql-committers Suppress implicit-conversion warnings seen with newer clang versions. We were assigning values near 255 through "char *" pointers. On machines where char is signed, that's not entirely kosher, and it's reasonable for compilers to warn about it. A better solution would be to change the pointer type to "unsigned char *", but that would be vastly more invasive. For the moment, let's just apply this simple backpatchable solution. Aleksander Alekseev Discussion: https://postgr.es/m/20170220141239.GD12278@e733.localdomain Discussion: https://postgr.es/m/2839.1490714708@sss.pgh.pa.us Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/8cfeaecfc76a7366b336272bc76e96e09281b133 Modified Files -------------- src/backend/access/transam/xlog.c | 2 +- src/backend/access/transam/xloginsert.c | 6 +++--- src/bin/pg_resetwal/pg_resetwal.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2017-03-28 17:16 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-03-28 17:16 pgsql: Suppress implicit-conversion warnings seen with newer clang vers Tom Lane <tgl@sss.pgh.pa.us> 2017-03-28 17:16 pgsql: Suppress implicit-conversion warnings seen with newer clang vers Tom Lane <tgl@sss.pgh.pa.us> 2017-03-28 17:16 pgsql: Suppress implicit-conversion warnings seen with newer clang vers 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