1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
|
From 19ee01acef967728f725858e51c7916c810323b0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcus=20M=C3=BCller?= <mmueller@gnuradio.org>
Date: Thu, 3 Apr 2025 09:27:52 +0200
Subject: [PATCH 10/41] ctrlport: mark potentially unused parameters as such
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
should silence F41 compiler warnings-turned-errors
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
---
.../include/gnuradio/rpcregisterhelpers.h | 42 +++++++++----------
.../gr/bindings/rpcregisterhelpers_python.cc | 2 +-
2 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/gnuradio-runtime/include/gnuradio/rpcregisterhelpers.h b/gnuradio-runtime/include/gnuradio/rpcregisterhelpers.h
index 954a98819c..45ccf76cfd 100644
--- a/gnuradio-runtime/include/gnuradio/rpcregisterhelpers.h
+++ b/gnuradio-runtime/include/gnuradio/rpcregisterhelpers.h
@@ -802,8 +802,8 @@ struct rpcbasic_register_set : public rpcbasic_base {
* \param display_ The display mask
*/
rpcbasic_register_set(const std::string& block_alias,
- const char* functionbase,
- void (T::*function)(Tto),
+ [[maybe_unused]] const char* functionbase,
+ [[maybe_unused]] void (T::*function)(Tto),
const pmt::pmt_t& min,
const pmt::pmt_t& max,
const pmt::pmt_t& def,
@@ -862,10 +862,10 @@ struct rpcbasic_register_set : public rpcbasic_base {
* \param minpriv_ The required minimum privilege level
* \param display_ The display mask
*/
- rpcbasic_register_set(const std::string& name,
- const char* functionbase,
+ rpcbasic_register_set([[maybe_unused]] const std::string& name,
+ [[maybe_unused]] const char* functionbase,
T* obj,
- void (T::*function)(Tto),
+ [[maybe_unused]] void (T::*function)(Tto),
const pmt::pmt_t& min,
const pmt::pmt_t& max,
const pmt::pmt_t& def,
@@ -982,8 +982,8 @@ struct rpcbasic_register_trigger : public rpcbasic_base {
* \param minpriv_ The required minimum privilege level
*/
rpcbasic_register_trigger(const std::string& block_alias,
- const char* functionbase,
- void (T::*function)(),
+ [[maybe_unused]] const char* functionbase,
+ [[maybe_unused]] void (T::*function)(),
const char* desc_ = "",
priv_lvl_t minpriv_ = RPC_PRIVLVL_MIN)
{
@@ -1022,10 +1022,10 @@ struct rpcbasic_register_trigger : public rpcbasic_base {
* \param desc_ A string to describing the variable.
* \param minpriv_ The required minimum privilege level
*/
- rpcbasic_register_trigger(const std::string& name,
- const char* functionbase,
+ rpcbasic_register_trigger([[maybe_unused]] const std::string& name,
+ [[maybe_unused]] const char* functionbase,
T* obj,
- void (T::*function)(),
+ [[maybe_unused]] void (T::*function)(),
const char* desc_ = "",
priv_lvl_t minpriv_ = RPC_PRIVLVL_MIN)
{
@@ -1133,8 +1133,8 @@ public:
* \param display_ The display mask
*/
rpcbasic_register_get(const std::string& block_alias,
- const char* functionbase,
- Tfrom (T::*function)(),
+ [[maybe_unused]] const char* functionbase,
+ [[maybe_unused]] Tfrom (T::*function)(),
const pmt::pmt_t& min,
const pmt::pmt_t& max,
const pmt::pmt_t& def,
@@ -1176,8 +1176,8 @@ public:
* '[variable]() const' getter functions.
*/
rpcbasic_register_get(const std::string& block_alias,
- const char* functionbase,
- Tfrom (T::*function)() const,
+ [[maybe_unused]] const char* functionbase,
+ [[maybe_unused]] Tfrom (T::*function)() const,
const pmt::pmt_t& min,
const pmt::pmt_t& max,
const pmt::pmt_t& def,
@@ -1238,10 +1238,10 @@ public:
* \param minpriv_ The required minimum privilege level
* \param display_ The display mask
*/
- rpcbasic_register_get(const std::string& name,
- const char* functionbase,
+ rpcbasic_register_get([[maybe_unused]] const std::string& name,
+ [[maybe_unused]] const char* functionbase,
T* obj,
- Tfrom (T::*function)(),
+ [[maybe_unused]] Tfrom (T::*function)(),
const pmt::pmt_t& min,
const pmt::pmt_t& max,
const pmt::pmt_t& def,
@@ -1281,10 +1281,10 @@ public:
* \brief Same as above that allows using '[variable]() const'
* getter functions.
*/
- rpcbasic_register_get(const std::string& name,
- const char* functionbase,
+ rpcbasic_register_get([[maybe_unused]] const std::string& name,
+ [[maybe_unused]] const char* functionbase,
T* obj,
- Tfrom (T::*function)() const,
+ [[maybe_unused]] Tfrom (T::*function)() const,
const pmt::pmt_t& min,
const pmt::pmt_t& max,
const pmt::pmt_t& def,
@@ -1612,7 +1612,7 @@ public:
* \param display_ The display mask
*/
rpcbasic_register_handler(const std::string& block_alias,
- const char* handler,
+ [[maybe_unused]] const char* handler,
const char* units_ = "",
const char* desc_ = "",
priv_lvl_t minpriv_ = RPC_PRIVLVL_MIN,
diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/rpcregisterhelpers_python.cc b/gnuradio-runtime/python/gnuradio/gr/bindings/rpcregisterhelpers_python.cc
index adfccbefcd..52ba6c0e3c 100644
--- a/gnuradio-runtime/python/gnuradio/gr/bindings/rpcregisterhelpers_python.cc
+++ b/gnuradio-runtime/python/gnuradio/gr/bindings/rpcregisterhelpers_python.cc
@@ -14,7 +14,7 @@
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(rpcregisterhelpers.h) */
-/* BINDTOOL_HEADER_FILE_HASH(0e7fa8e10f2385eff09832a4476c1fff) */
+/* BINDTOOL_HEADER_FILE_HASH(655cba56c80e645375b1cc15510d87d3) */
/***********************************************************************************/
#include <pybind11/complex.h>
--
2.47.3
|