1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/math/coinutils
Dimitry Andric f82231b90c math/coinutils: fix build with clang 16
Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
Because math/coinutils's build infrastructure does not explicitly set
its C++ standard, this leads to several errors:

  ./CoinOslC.h:37:15: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  int c_ekkbtrn(register const EKKfactinfo *fact,
                ^~~~~~~~~
  ./CoinOslC.h:40:22: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  int c_ekkbtrn_ipivrw(register const EKKfactinfo *fact,
                       ^~~~~~~~~
  ./CoinOslC.h:44:15: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  int c_ekketsj(register /*const*/ EKKfactinfo *fact,
                ^~~~~~~~
  ./CoinOslC.h:49:15: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  int c_ekkftrn(register const EKKfactinfo *fact,
                ^~~~~~~~~
  ./CoinOslC.h:53:18: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  int c_ekkftrn_ft(register EKKfactinfo *fact,
                   ^~~~~~~~~
  ./CoinOslC.h:55:17: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  void c_ekkftrn2(register EKKfactinfo *fact, double *dwork1,
                  ^~~~~~~~~
  ./CoinOslC.h:59:15: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  int c_ekklfct(register EKKfactinfo *fact);
                ^~~~~~~~~
  ./CoinOslC.h:60:15: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  int c_ekkslcf(register const EKKfactinfo *fact);
                ^~~~~~~~~

To work around the errors, define the register keyword away using
CPPFLAGS.

PR:		271870
Approved by:	yuri (maintainer)
MFH:		2023Q2
2023-06-08 18:29:48 +02:00
..
distinfo math/coinutils: Update 2.11.6 → 2.11.9 2023-04-28 00:28:15 -07:00
Makefile math/coinutils: fix build with clang 16 2023-06-08 18:29:48 +02:00
pkg-descr Remove WWW entries moved into port Makefiles 2022-09-07 23:58:51 +02:00
pkg-plist math/coinutils: Update 2.11.6 → 2.11.9 2023-04-28 00:28:15 -07:00