svn commit: r334078 - head/sbin/devd

Eitan Adler eadler at freebsd.org
Wed May 23 13:49:22 UTC 2018


On 23 May 2018 at 06:35, Warner Losh <imp at bsdimp.com> wrote:
>
>
> On Wed, May 23, 2018 at 1:39 AM, Eitan Adler <eadler at freebsd.org> wrote:
>>
>> Author: eadler
>> Date: Wed May 23 07:39:05 2018
>> New Revision: 334078
>> URL: https://svnweb.freebsd.org/changeset/base/334078
>>
>> Log:
>>   devd: compile at WARNS=6
>>
>>   Verified with "make universe TARGETS='amd64 arm arm64 i386 sparc64'"
>>
>> Modified:
>>   head/sbin/devd/Makefile
>>   head/sbin/devd/devd.cc
>>   head/sbin/devd/token.l
>>
> ...
>>
>> Modified: head/sbin/devd/token.l
>>
>> ==============================================================================
>> --- head/sbin/devd/token.l      Wed May 23 07:39:02 2018        (r334077)
>> +++ head/sbin/devd/token.l      Wed May 23 07:39:05 2018        (r334078)
>> @@ -38,6 +38,7 @@
>>  #include "devd.h"
>>  #include "y.tab.h"
>>
>> +extern int lineno;
>>  int lineno = 1;
>>
>>  static void
>
>
> This is completely bogus.  Never ever ever just put extern in the line
> before to avoid the warning. That's wrong 100% of the time.

You're right. thanks for the reminder. See r334095


-- 
Eitan Adler
Source, Ports, Doc committer
Bugmeister, Ports Security teams


More information about the svn-src-all mailing list