1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/emulators/elliott-803
Dimitry Andric 9324aed8ec emulators/elliott: fix unused but set variable
During an exp-run for llvm 13 (see bug 258209), it turned out that
emulators/elliott fails to build with clang 13:

emulator.c:536:20: error: variable 'y' set but not used [-Werror,-Wunused-but-set-variable]
        int x, x1, y;
                   ^
1 error generated.

This is because x, x1 and y are used in ncurses getyx() macros, but in
this case the program is not interested in the y result. Mark it as
__unused to get rid of the warning.

PR:		258471
Approved by:	maintainer timeout (2 weeks)
MFH:		2021Q4
2021-10-02 13:24:44 +02:00
..
files emulators/elliott: fix unused but set variable 2021-10-02 13:24:44 +02:00
distinfo
Makefile
pkg-descr
pkg-plist