[Spice-devel] [PATCH 09/14] Remove clang warning on marking a function const
Christophe de Dinechin
christophe at dinechin.org
Wed Feb 14 17:52:17 UTC 2018
From: Christophe de Dinechin <dinechin at redhat.com>
./static-plugin.hpp:29:5: warning: 'const' qualifier on function type 'PluginInitFunc' (aka 'bool (spice::streaming_agent::Agent *)') has no effect [-Wignored-qualifiers]
const PluginInitFunc* const init_func;
^~~~~~
Signed-off-by: Christophe de Dinechin <dinechin at redhat.com>
---
src/static-plugin.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/static-plugin.hpp b/src/static-plugin.hpp
index 3b34b2e..f1e1c93 100644
--- a/src/static-plugin.hpp
+++ b/src/static-plugin.hpp
@@ -26,7 +26,7 @@ private:
void *operator new[](size_t s);
const StaticPlugin *const next;
- const PluginInitFunc* const init_func;
+ PluginInitFunc* const init_func;
static const StaticPlugin *list;
};
--
2.13.5 (Apple Git-94)
More information about the Spice-devel
mailing list