Date: Tue, 1 May 2012 12:55:15 +0200 (CEST) From: Niclas Zeising <zeising@daemonic.se> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/167481: [PATCH] make usr.bin/mkesdb and usr.bin/mkcsmapper build with clang using -Werror Message-ID: <201205011055.q41AtFIf068535@vincent.daemonic.se> Resent-Message-ID: <201205011100.q41B0OAv030446@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 167481 >Category: bin >Synopsis: [PATCH] make usr.bin/mkesdb and usr.bin/mkcsmapper build with clang using -Werror >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 01 11:00:24 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Niclas Zeising >Release: FreeBSD 9.0-RELEASE amd64 >Organization: >Environment: System: FreeBSD vincent.daemonic.se 9.0-RELEASE FreeBSD 9.0-RELEASE #0 r232364: Fri Mar 2 01:14:23 CET 2012 root@vincent.daemonic.se:/usr/obj/usr/src/sys/VINCENT amd64 >Description: usr.bin/mkesdb and usr.bin/mkcsmapper does not build with clang when -Werror is used. >How-To-Repeat: >Fix: Attached patch makes them build with clang -Werror. --- head.usr.bin.buildfix.diff begins here --- Index: head/usr.bin/mkesdb/lex.l =================================================================== --- head/usr.bin/mkesdb/lex.l (revision 234868) +++ head/usr.bin/mkesdb/lex.l (working copy) @@ -45,6 +45,7 @@ int line_number = 1; %} +%option noinput %option nounput %x COMMENT @@ -59,7 +60,7 @@ <COMMENT>[\n] { line_number++; } <COMMENT>. { } <COMMENT><<EOF>> { - yyerror("unexpected file end (unterminate comment)\n"); + yyerror("unexpected end of file (unterminated comment)\n"); exit(1); } Index: head/usr.bin/mkcsmapper/lex.l =================================================================== --- head/usr.bin/mkcsmapper/lex.l (revision 234868) +++ head/usr.bin/mkcsmapper/lex.l (working copy) @@ -43,6 +43,7 @@ int line_number = 1; %} +%option noinput %option nounput %x COMMENT @@ -57,7 +58,7 @@ <COMMENT>[\n] { line_number++; } <COMMENT>. { } <COMMENT><<EOF>> { - yyerror("unexpected file end (unterminate comment)\n"); + yyerror("unexpected end of file (unterminated comment)\n"); exit(1); } --- head.usr.bin.buildfix.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205011055.q41AtFIf068535>