Signed-off-by: Mark Wielaard <mjw@redhat.com>
+2015-10-07 Mark Wielaard <mjw@redhat.com>
+
+ * Makefile.am (ldlex_no_Wstack_usage): New.
+ * ldlex.l ([RWX]): Make cnt unsigned.
+
2015-10-09 Josh Stone <jistone@redhat.com>
* elflint.c (main): Replace stat64 and fstat64 with stat and fstat.
# 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
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++]);