Project

General

Profile

Actions

Bug #2614

open

livefilter.c:58:29: error: 'min' was not declared in this scope; did you mean 'std::min'?

Added by marco almost 4 years ago.

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

vdr-streamdev-gcc11-fix.patch (479 Bytes) vdr-streamdev-gcc11-fix.patch marco, 01/09/2021 01:37 PM

No data to display

Actions

Also available in: Atom PDF