[Bug 271034] textproc/groff: fix build with clang 16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 23 Apr 2023 19:32:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271034
Bug ID: 271034
Summary: textproc/groff: fix build with clang 16
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: bapt@FreeBSD.org
Reporter: dim@FreeBSD.org
Flags: maintainer-feedback?(bapt@FreeBSD.org)
Assignee: bapt@FreeBSD.org
Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
Because textproc/groff's Makefile does not explicitly set its C++
standard, this leads to several errors:
src/preproc/grn/hdb.cpp:38:15: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
int DBGetType(register char *s);
^~~~~~~~~
src/preproc/grn/hdb.cpp:64:3: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
register ELT *temp;
^~~~~~~~~
src/preproc/grn/hdb.cpp:83:8: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
DBRead(register FILE *file)
^~~~~~~~~
src/preproc/grn/hdb.cpp:85:3: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
register int i;
^~~~~~~~~
src/preproc/grn/hdb.cpp:86:3: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
register int done; /* flag for input exhausted */
^~~~~~~~~
src/preproc/grn/hdb.cpp:87:3: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
register double nx; /* x holder so x is not set before orienting
*/
^~~~~~~~~
src/preproc/grn/hdb.cpp:212:11: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
DBGetType(register char *s)
^~~~~~~~~
Add USE_CXXSTD=gnu++98 to avoid these errors.
--
You are receiving this mail because:
You are the assignee for the bug.