]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
tools/ceph-dencoder: remove "using namespace std"
authorMax Kellermann <max.kellermann@ionos.com>
Wed, 30 Jul 2025 05:28:35 +0000 (07:28 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Tue, 5 Aug 2025 08:28:00 +0000 (10:28 +0200)
This breaks the ARM-NEON build:

 /usr/lib/gcc/aarch64-linux-gnu/14/include/arm_neon.h:2632:31: error: reference to ‘float16_t’ is ambiguous
  2632 | __extension__ extern __inline float16_t
       |                               ^~~~~~~~~
 /usr/include/c++/14/stdfloat:40:9: note: candidates are: ‘using std::float16_t = _Float16’
    40 |   using float16_t = _Float16;
       |         ^~~~~~~~~
 /usr/lib/gcc/aarch64-linux-gnu/14/include/arm_neon.h:74:16: note:                 ‘typedef __fp16 float16_t’
    74 | typedef __fp16 float16_t;
       |                ^~~~~~~~~

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/tools/ceph-dencoder/common_types.cc
src/tools/ceph-dencoder/mds_types.cc
src/tools/ceph-dencoder/nvmeof_types.cc
src/tools/ceph-dencoder/osd_types.cc
src/tools/ceph-dencoder/rbd_types.cc
src/tools/ceph-dencoder/rgw_types.cc
src/tools/ceph-dencoder/str.h

index fa763c3bbd96b213c75b9ea4f21b796fa4850a04..7c894ab37612cda5d7b9bfe0ece9eedffba97987 100644 (file)
@@ -1,6 +1,5 @@
 #include "acconfig.h"
 #include <cstdint>
-using namespace std;
 #include "include/ceph_features.h"
 
 #define TYPE(t)
index 94280477a5b56bc5542f806edf65d797c7e9f3ea..cee0779e48ba0f15e1a093c0b2cac4a428af207f 100644 (file)
@@ -1,6 +1,5 @@
 #include "acconfig.h"
 #include <cstdint>
-using namespace std;
 #include "include/ceph_features.h"
 
 #define TYPE(t)
index 86b76e43741ebfe86e7430ab9b240080a059cf74..645f8c6494a5f7bfb3e78bb78c2b9336e8515e09 100644 (file)
@@ -1,6 +1,5 @@
 #include "acconfig.h"
 #include <cstdint>
-using namespace std;
 #include "include/ceph_features.h"
 
 #define TYPE(t)
index 13a90685bc8545d08f6345bff0c858105dbd1ffd..0170179a8044357e6ba616d9911c8dbdb372e0cd 100644 (file)
@@ -1,6 +1,5 @@
 #include "acconfig.h"
 #include <cstdint>
-using namespace std;
 #include "include/ceph_features.h"
 
 #define TYPE(t)
index e04efc30d52877e9996c768a347a645a87e7868d..81d4fa7e5ed4dfa7ca0dee7815c931c6b4cf1303 100644 (file)
@@ -1,6 +1,5 @@
 #include "acconfig.h"
 #include <cstdint>
-using namespace std;
 #include "include/ceph_features.h"
 
 #define TYPE(t)
index 79688b5343f5737a4852062f7fe87dd220e2cb3b..2fe444362a45bb6572d515e850e0807c4b74e16e 100644 (file)
@@ -1,6 +1,5 @@
 #include "acconfig.h"
 #include <cstdint>
-using namespace std;
 #include "include/ceph_features.h"
 
 #define TYPE(t)
index 7ff1d0794b5128f2bf5e3880d888dd43b788a80b..defc224c6139f9a4692b6ee00e1ea011005ff2d4 100644 (file)
@@ -8,7 +8,7 @@ class string_wrapper {
   std::string s;
   public:
    string_wrapper() = default;
-   string_wrapper(string s1)
+   string_wrapper(std::string s1)
     : s(s1)
    {}