https://bugzilla.lysator.liu.se/show_bug.cgi?id=1715
Bug ID: 1715 Summary: yyerror() should not have format string attribute, since that is incompatible with yacc-generated code Classification: LysKOM Product: lyskomd Version: 2.1.2 Hardware: All OS: All Status: NEW Severity: minor Priority: P5 Component: server Assignee: ceder@lysator.liu.se Reporter: holmgren@lysator.liu.se QA Contact: lyskomd-qa@lists.lysator.liu.se
yacc/bison expects yyerror() to take only a char const *. Adding __attribute__ ((format (printf, 1, 2))) causes a compilation error when compiling with -Werror=format-security, which happens to be what at least Debian tries to do nowadays (for good reasons). Either remove the attribute or rename the function and make yyerror() a wrapper or macro that calls the original function with "%s" as the first argument.
See https://bugs.debian.org/643446#25
lyskomd-qa@lists.lysator.liu.se