develooper Front page | perl.perl5.porters | Postings from March 2018

[perl #132929] [PATCH] rmv/de-dup static const char array "strings"

From:
Tony Cook via RT
Date:
March 7, 2018 03:27
Subject:
[perl #132929] [PATCH] rmv/de-dup static const char array "strings"
Message ID:
rt-4.0.24-24707-1520393267-1285.132929-15-0@perl.org
On Thu, 01 Mar 2018 13:44:12 -0800, bulk88 wrote:
> See attached patch.

This patch isn't perfect - it depends on the compiler (and possibly linker) to de-dup the string literals, but I think it's an improvement over the previous state.

The simplest alternative, to make the strings non-API globals, means we need to work to suppress spurious format string warnings from various compilers.

Thanks, applied as 814eedc877a5aa1dbba0047735733e9491aa94a4.

Tony

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=132929



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About