Package: byacc
Version: byacc - 2.0 20221229
Severity: normal
Dear Maintainer,
* What led up to the situation?
Compiling groff
####
output.c: putl_code(fp, "#if !(defined(yylex) || defined(YYSTATE))\n");
"yylex" is a name of a function but "#... defined(...)" applies to
macros not functions(?).
####
When compiling, a warning is issued:
CXX src/preproc/eqn/eqn-eqn.o
src/preproc/eqn/eqn.cpp:73:23: warning: redundant redeclaration of 'int
yylex()' in same scope [-Wredundant-decls]
73 | # define YYLEX_DECL() yylex(void)
| ^~~~~
src/preproc/eqn/eqn.cpp:78:5: note: in expansion of macro 'YYLEX_DECL'
78 | int YYLEX_DECL();
| ^~~~~~~~~~
../src/preproc/eqn/eqn.ypp:31:5: note: previous declaration of 'int
yylex()'
31 | int yylex(void);
| ^~~~~
CXXLD eqn
####
When I change "yylex" to "YYLEX" in the "putl_code(...)" line there
is no warning.
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 6.0.12-1 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1),
LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages byacc depends on:
ii libc6 2.36-8
byacc recommends no packages.
byacc suggests no packages.