[Midnightbsd-cvs] [MidnightBSD/src] 764669: bsd.sys.mk: Disable -Wdangling-reference for GCC 13+
Lucas Holt
noreply at github.com
Sun Dec 1 14:07:40 EST 2024
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/src
Commit: 764669aef8bb18659f8424e169c1740ea690f51b
https://github.com/MidnightBSD/src/commit/764669aef8bb18659f8424e169c1740ea690f51b
Author: Lucas Holt <luke at foolishgames.com>
Date: 2024-12-01 (Sun, 01 Dec 2024)
Changed paths:
M share/mk/bsd.sys.mk
Log Message:
-----------
bsd.sys.mk: Disable -Wdangling-reference for GCC 13+
GCC raises this warning for libc++'s istream. It raises false
positives in other cases as well (GCC bugs 109640, 109642, 109671).
Warning from <istream>:
/usr/include/c++/v1/istream:1464:34: error: possibly dangling reference to a temporary [-Werror=dangling-reference]
1464 | const ctype<_CharT>& __ct = std::use_facet<ctype<_CharT> >(__is.getloc());
| ^~~~
/usr/include/c++/v1/istream:1464:71: note: the temporary was destroyed at the end of the full expression 'std::__1::use_facet<ctype<char> >(std::__1::ios_base::getloc() const())'
1464 | const ctype<_CharT>& __ct = std::use_facet<ctype<_CharT> >(__is.getloc());
|
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications
More information about the Midnightbsd-cvs
mailing list