[PATCH 09/14] Remove clang warning on marking a function const

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Christophe de Dinechin <dinechin@xxxxxxxxxx>

./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@xxxxxxxxxx>
---
 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)

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]