[Bug 278002] games/endless-sky: fix build with clang 18
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Mar 2024 20:53:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278002 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: /wrkdirs/usr/ports/games/endless-sky/work/endless-sky-0.10.4/source/Audio.cpp: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 { | ^ /wrkdirs/usr/ports/games/endless-sky/work/endless-sky-0.10.4/source/Audio.cpp: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_'. -- You are receiving this mail because: You are the assignee for the bug.