Actions
Bug #2614
openlivefilter.c:58:29: error: 'min' was not declared in this scope; did you mean 'std::min'?
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
01/09/2021
Due date:
% Done:
0%
Estimated time:
Description
Hi,
when compiling vd-streamdev on Fedora 34 with gcc11, i get this error message:
livefilter.c:58:29: error: 'min' was not declared in this scope; did you mean 'std::min'?
58 | int chunk = min(length, TS_SIZE - 5);
| ^~~
| std::min
In file included from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/c++/11/math.h:36,
from /usr/include/vdr/tools.h:18,
from /usr/include/vdr/filter.h:14,
from livefilter.c:5:
/usr/include/c++/11/bits/stl_algobase.h:278:5: note: 'std::min' declared here
278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
this could be simply corrected with the attached patch.
Files
No data to display
Actions