vlc | branch: master | Hugo Beauzée-Luyssen <h...@beauzee.fr> | Thu Dec 3 03:46:23 2020 -0800| [9440b0af66b3bac420c1fd91c0d9bdb504db232c] | committer: Hugo Beauzée-Luyssen
vlc_plugin.h: Cast the deactivate function pointer Instead of initializing a function pointer using a compound literal, which might not compile in C++ > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9440b0af66b3bac420c1fd91c0d9bdb504db232c --- include/vlc_plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h index 63f0b3ac08..7a68c953e3 100644 --- a/include/vlc_plugin.h +++ b/include/vlc_plugin.h @@ -313,7 +313,7 @@ VLC_METADATA_EXPORTS #define set_callbacks( activate, deactivate ) \ set_callback(activate) \ if (vlc_module_set(VLC_MODULE_CB_CLOSE, #deactivate, \ - (void (*)(vlc_object_t *)){ deactivate })) \ + (void (*)(vlc_object_t *))( deactivate ))) \ goto error; #define cannot_unload_broken_library( ) \ _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits