Date: Wed, 27 Mar 2024 20:53:25 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 278002] games/endless-sky: fix build with clang 18 Message-ID: <bug-278002-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278002 Bug ID: 278002 Summary: games/endless-sky: fix build with clang 18 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: amdmi3@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: amdmi3@FreeBSD.org Flags: maintainer-feedback?(amdmi3@FreeBSD.org) With clang 18, games/endless-sky fails to build: =20 /wrkdirs/usr/ports/games/endless-sky/work/endless-sky-0.10.4/source/Audio.c= pp:252:3: error: reference to 'queue' is ambiguous 252 | queue[it.first].Add(it.second); | ^ /usr/include/c++/v1/queue:301:28: note: candidate found by name lookup is 'std::queue' 301 | class _LIBCPP_TEMPLATE_VIS queue { | ^ =20 /wrkdirs/usr/ports/games/endless-sky/work/endless-sky-0.10.4/source/Audio.c= pp:85:33: note: candidate found by name lookup is '(anonymous namespace)::queue' 85 | map<const Sound *, QueueEntry> queue; | ^ This is because Audio.cpp contains "using namespace std;" and then the name 'queue' is already in use by the standard library. Fix it by renaming the local variable 'queue' to 'queue_'. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278002-7788>