[v1,2/2] test: controls: control_info_map: Fix libc++ warning
diff mbox series

Message ID 20260428084550.91669-2-barnabas.pocze@ideasonboard.com
State New
Headers show
Series
  • [v1,1/2] libcamera: base: regex: Fix preprocessor check
Related show

Commit Message

Barnabás Pőcze April 28, 2026, 8:45 a.m. UTC
Since llvm 22, libc++ has made `std::unordered_map::at()` have the `nodiscard`
attribute, leading to warnings, fix that with `std::ignore`.

Link: https://github.com/llvm/llvm-project/commit/9a03a30706cca40b93146f379fb5faa75d417af5
Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
---
 test/controls/control_info_map.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/test/controls/control_info_map.cpp b/test/controls/control_info_map.cpp
index b0be14b58..6c20ee8d0 100644
--- a/test/controls/control_info_map.cpp
+++ b/test/controls/control_info_map.cpp
@@ -49,7 +49,7 @@  protected:
 			return TestFail;
 		}
 
-		infoMap.at(&controls::Brightness);
+		std::ignore = infoMap.at(&controls::Brightness);
 
 		/* Test looking up a valid control by numerical ID. */
 		if (infoMap.count(controls::Brightness.id()) != 1) {