* Re: [PATCH] ldlex: Fix sign-compare warning, suppress -Wstack-usage.
@ 2015-10-12 10:25 Mark Wielaard
0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2015-10-12 10:25 UTC (permalink / raw)
To: elfutils-devel
[-- Attachment #1: Type: text/plain, Size: 223 bytes --]
On Wed, 2015-10-07 at 13:59 +0200, Mark Wielaard wrote:
> +2015-10-07 Mark Wielaard <mjw@redhat.com>
> +
> + * Makefile.am (ldlex_no_Wstack_usage): New.
> + * ldlex.l ([RWX]): Make cnt unsigned.
Pushed to master.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] ldlex: Fix sign-compare warning, suppress -Wstack-usage.
@ 2015-10-07 11:59 Mark Wielaard
0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2015-10-07 11:59 UTC (permalink / raw)
To: elfutils-devel
[-- Attachment #1: Type: text/plain, Size: 1387 bytes --]
Signed-off-by: Mark Wielaard <mjw@redhat.com>
---
src/ChangeLog | 5 +++++
src/Makefile.am | 1 +
src/ldlex.l | 2 +-
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/ChangeLog b/src/ChangeLog
index daa76cf..3f9b281 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2015-10-07 Mark Wielaard <mjw@redhat.com>
+
+ * Makefile.am (ldlex_no_Wstack_usage): New.
+ * ldlex.l ([RWX]): Make cnt unsigned.
+
2015-10-05 Josh Stone <jistone@redhat.com>
* Makefile.am (libld_elf_i386.so): Add AM_V_CCLD silencer.
diff --git a/src/Makefile.am b/src/Makefile.am
index afb38fc..04ae3cb 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -89,6 +89,7 @@ endif
# XXX While the file is not finished, don't warn about this
ldgeneric_no_Wunused = yes
ldgeneric_no_Wstack_usage = yes
+ldlex_no_Wstack_usage = yes
# Bad, bad stack usage...
readelf_no_Wstack_usage = yes
diff --git a/src/ldlex.l b/src/ldlex.l
index bfc8bbe..835c2dc 100644
--- a/src/ldlex.l
+++ b/src/ldlex.l
@@ -146,7 +146,7 @@ SIZEOF_HEADERS { return kSIZEOF_HEADERS; }
SORT { return kSORT; }
VERSION { return kVERSION; }
-"["([RWX]){0,3}"]" { int cnt = 1 ;
+"["([RWX]){0,3}"]" { unsigned int cnt = 1 ;
ldlval.num = 0;
while (cnt < yyleng - 1)
ldlval.num |= attrib_convert (yytext[cnt++]);
--
2.4.3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-12 10:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-12 10:25 [PATCH] ldlex: Fix sign-compare warning, suppress -Wstack-usage Mark Wielaard
-- strict thread matches above, loose matches on Subject: below --
2015-10-07 11:59 Mark Wielaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).