[Spice-devel] [PATCH 09/14] Remove clang warning on marking a function const
Frediano Ziglio
fziglio at redhat.com
Thu Feb 15 05:58:45 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;
> };
Acked-by: Frediano Ziglio <fziglio at redhat.com>
Frediano
More information about the Spice-devel
mailing list