1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/databases/gigabase
Jan Beich 9ba838979e databases/gigabase: work around GCC >= 6 bustage
testtimeseries.cpp: In function 'float fmax(float, float)':
testtimeseries.cpp:50:35: error: 'float fmax(float, float)' conflicts with a previous declaration
 inline float fmax(float x, float y) { return x > y ? x : y; }
                                   ^
In file included from /usr/local/lib/gcc6/include/c++/math.h:36:0,
                 from testtimeseries.cpp:15:
/usr/local/lib/gcc6/include/c++/cmath:1452:3: note: previous declaration 'constexpr float std::fmax(float, float)'
   fmax(float __x, float __y)
   ^~~~
testtimeseries.cpp: In function 'float fmin(float, float)':
testtimeseries.cpp:51:35: error: 'float fmin(float, float)' conflicts with a previous declaration
 inline float fmin(float x, float y) { return x < y ? x : y; }
                                   ^
In file included from /usr/local/lib/gcc6/include/c++/math.h:36:0,
                 from testtimeseries.cpp:15:
/usr/local/lib/gcc6/include/c++/cmath:1472:3: note: previous declaration 'constexpr float std::fmin(float, float)'
   fmin(float __x, float __y)
   ^~~~
testtimeseries.cpp: In function 'int main(int, char**)':
testtimeseries.cpp:69:54: error: call of overloaded 'fmax(float&, float&)' is ambiguous
             quote.high = fmax(quote.open, quote.close);
                                                      ^
In file included from /usr/local/lib/gcc6/include/c++/cmath:45:0,
                 from /usr/local/lib/gcc6/include/c++/math.h:36,
                 from testtimeseries.cpp:15:
/usr/include/math.h:309:8: note: candidate: double fmax(double, double)
 double fmax(double, double) __pure2;
        ^~~~
In file included from /usr/local/lib/gcc6/include/c++/math.h:36:0,
                 from testtimeseries.cpp:15:
/usr/local/lib/gcc6/include/c++/cmath:1463:5: note: candidate: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::fmax(_Tp, _Up) [with _Tp = float; _Up = float; typename __gnu_cxx::__promote_2<_Tp, _Up>::__type = float]
     fmax(_Tp __x, _Up __y)
     ^~~~
/usr/local/lib/gcc6/include/c++/cmath:1456:3: note: candidate: constexpr long double std::fmax(long double, long double)
   fmax(long double __x, long double __y)
   ^~~~
/usr/local/lib/gcc6/include/c++/cmath:1452:3: note: candidate: constexpr float std::fmax(float, float)
   fmax(float __x, float __y)
   ^~~~
testtimeseries.cpp:50:14: note: candidate: float fmax(float, float)
 inline float fmax(float x, float y) { return x > y ? x : y; }
              ^~~~
testtimeseries.cpp:70:53: error: call of overloaded 'fmin(float&, float&)' is ambiguous
             quote.low = fmin(quote.open, quote.close);
                                                     ^
In file included from /usr/local/lib/gcc6/include/c++/cmath:45:0,
                 from /usr/local/lib/gcc6/include/c++/math.h:36,
                 from testtimeseries.cpp:15:
/usr/include/math.h:310:8: note: candidate: double fmin(double, double)
 double fmin(double, double) __pure2;
        ^~~~
In file included from /usr/local/lib/gcc6/include/c++/math.h:36:0,
                 from testtimeseries.cpp:15:
/usr/local/lib/gcc6/include/c++/cmath:1483:5: note: candidate: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::fmin(_Tp, _Up) [with _Tp = float; _Up = float; typename __gnu_cxx::__promote_2<_Tp, _Up>::__type = float]
     fmin(_Tp __x, _Up __y)
     ^~~~
/usr/local/lib/gcc6/include/c++/cmath:1476:3: note: candidate: constexpr long double std::fmin(long double, long double)
   fmin(long double __x, long double __y)
   ^~~~
/usr/local/lib/gcc6/include/c++/cmath:1472:3: note: candidate: constexpr float std::fmin(float, float)
   fmin(float __x, float __y)
   ^~~~
testtimeseries.cpp:51:14: note: candidate: float fmin(float, float)
 inline float fmin(float x, float y) { return x < y ? x : y; }
              ^~~~

PR:		219275
2017-05-14 18:30:38 +00:00
..
files Convert to USES=autoreconf 2015-04-18 19:09:03 +00:00
distinfo
Makefile databases/gigabase: work around GCC >= 6 bustage 2017-05-14 18:30:38 +00:00
pkg-descr
pkg-plist