svn commit: r327616 - head/usr.bin/morse

Eitan Adler lists at eitanadler.com
Sat Jan 6 16:52:00 UTC 2018


On 6 January 2018 at 08:36, Dimitry Andric <dim at freebsd.org> wrote:
> On 6 Jan 2018, at 14:19, Eitan Adler <lists at eitanadler.com> wrote:
>>
>> On 6 January 2018 at 01:48, Li-Wen Hsu <lwhsu at freebsd.org> wrote:
>>> Author: lwhsu (ports committer)
>>> Date: Sat Jan  6 09:48:04 2018
>>> New Revision: 327616
>>> URL: https://svnweb.freebsd.org/changeset/base/327616
>>>
>>> Log:
>>>  Unbreak build after r327614
>>
>> Why is testing with "make obj; make" in the morse directory insufficient?
>>
>> ∴make obj; make
>> rm -f .depend
>> echo morse.full: /usr/lib/libc.a  >> .depend
>> cc  -O2 -pipe   -g -MD  -MF.depend.morse.o -MTmorse.o -std=gnu99
>> -fstack-protector-strong -Wsystem-headers -Werror -Wall
>> -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
>> -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
>> -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
>> -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
>> -Wold-style-definition -Wno-pointer-sign
>> -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body
>> -Wno-string-plus-int -Wno-unused-const-variable  -Qunused-arguments
>> -c morse.c -o morse.o
>> cc -O2 -pipe -g -std=gnu99 -fstack-protector-strong -Wsystem-headers
>> -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
>> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
>> -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
>> -Wcast-align -Wchar-subscripts -Winline -Wnested-externs
>> -Wredundant-decls -Wold-style-definition -Wno-pointer-sign
>> -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body
>> -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments  -o
>> morse.full morse.o
>> objcopy --only-keep-debug morse.full morse.debug
>> objcopy --strip-debug --add-gnu-debuglink=morse.debug  morse.full morse
>> gzip -cn morse.6 > morse.6.gz
>
> Before r327616, I get:
>
> usr.bin/morse/morse.c:602:15: error: unused parameter 'stream' [-Werror,-Wunused-parameter]
> fdecode(FILE *stream)
>               ^
> 1 error generated.
>
> Maybe you have warnings turned off in your local build environment?

Is there anything that I could set in my environment that would
override the command line flags?


-- 
Eitan Adler


More information about the svn-src-all mailing list