From d5e9ec931ff338f3cffbaf80f20c78c85fb8f7c2 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Wed, 29 Jul 2026 11:34:00 +0200 Subject: [PATCH] fix build with gcc16 fix: ```cpp In file included from /build/source/octomap/include/octomap/OcTreeKey.h:40, from /build/source/octomap/include/octomap/OcTreeBaseImpl.h:45, from /build/source/octomap/include/octomap/OccupancyOcTreeBase.h:44, from /build/source/octomap/include/octomap/OcTreeStamped.h:39, from /build/source/octomap/src/OcTreeStamped.cpp:34: /nix/store/mcd6qn183lsac6dy6xqm1ijhldixvfq2-gcc-16.1.0/include/c++/16.1.0/ciso646:49:6: error: #warning " is not a standard header since C++20, use to detect implementation-specific macros" [-Werror=cpp] 49 | # warning " is not a standard header since C++20, use to detect implementation-specific macros" | ^~~~~~~ ``` follows #434 --- octomap/include/octomap/OcTreeKey.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/octomap/include/octomap/OcTreeKey.h b/octomap/include/octomap/OcTreeKey.h index 2ce78a62..d82ac49f 100644 --- a/octomap/include/octomap/OcTreeKey.h +++ b/octomap/include/octomap/OcTreeKey.h @@ -34,11 +34,6 @@ #ifndef OCTOMAP_OCTREE_KEY_H #define OCTOMAP_OCTREE_KEY_H -/* According to c++ standard including this header has no practical effect - * but it can be used to determine the c++ standard library implementation. - */ -#include - #include /* Libc++ does not implement the TR1 namespace, all c++11 related functionality