Actions
Bug #5657
closedrecent capmt introduced a compilation error
Bug #5657:
recent capmt introduced a compilation error
Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Descrambling
Target version:
-
Start date:
2019-06-13
Due date:
% Done:
100%
Estimated time:
Found in version:
bc769bfa9260bad6e1caa0c95591b70ae25f47bf
Affected Versions:
Description
commit bc769bf introdueced a compilation error when compiling on Fedora 30
CC src/descrambler/capmt.o
In file included from src/tvheadend.h:39,
from src/descrambler/capmt.c:24:
In function ‘capmt_analyze_cmd’,
inlined from ‘handle_single’ at src/descrambler/capmt.c:1765:9:
src/tvhlog.h:206:3: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
206 | _tvhlog(__FILE__, __LINE__, severity | LOG_TVH_NOTIFY, subsys, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/tvhlog.h:235:24: note: in expansion of macro ‘tvhlog’
235 | #define tvhinfo(...) tvhlog(LOG_INFO, ##__VA_ARGS__)
| ^~~~~~
src/descrambler/capmt.c:1514:5: note: in expansion of macro ‘tvhinfo’
1514 | tvhinfo(LS_CAPMT, "%s: Connected to server '%s' (protocol version %d)", capmt_name(capmt), info, protover);
| ^~~~~~~
src/descrambler/capmt.c: In function ‘handle_single’:
src/descrambler/capmt.c:1514:49: note: format string is defined here
1514 | tvhinfo(LS_CAPMT, "%s: Connected to server '%s' (protocol version %d)", capmt_name(capmt), info, protover);
| ^~
cc1: all warnings being treated as errors
Actions