diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-12-20 20:40:11 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-12-23 13:09:25 +0000 |
commit | 65276a4ebb734ffcd3e33defed23af9e637ec116 (patch) | |
tree | 26177db58a869d4f9c2289341e925c746fbdd775 | |
parent | d5d815189d98745e3b33a6caadd4c2dc5648a114 (diff) | |
download | wireshark-65276a4ebb734ffcd3e33defed23af9e637ec116.tar.gz wireshark-65276a4ebb734ffcd3e33defed23af9e637ec116.tar.bz2 wireshark-65276a4ebb734ffcd3e33defed23af9e637ec116.zip |
plugins: fix no previous prototype for function 'plugin_register' [-Wmissing-prototypes]
Change-Id: I84f1fd02f99e7d4757e418539f932c550e409f92
Reviewed-on: https://code.wireshark.org/review/24920
Petri-Dish: João Valverde <j@v6e.pt>
Reviewed-by: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
-rw-r--r-- | plugins/stats_tree/stats_tree_plugin.c | 4 | ||||
-rwxr-xr-x | tools/make-plugin-reg.py | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/plugins/stats_tree/stats_tree_plugin.c b/plugins/stats_tree/stats_tree_plugin.c index d2c1df9df2..16d65526a3 100644 --- a/plugins/stats_tree/stats_tree_plugin.c +++ b/plugins/stats_tree/stats_tree_plugin.c @@ -35,7 +35,9 @@ WS_DLL_PUBLIC_DEF const gchar plugin_version[] = PLUGIN_VERSION; WS_DLL_PUBLIC_DEF const gchar plugin_release[] = VERSION_RELEASE; -WS_DLL_PUBLIC_DEF void plugin_register(void) +WS_DLL_PUBLIC void plugin_register(void); + +void plugin_register(void) { static tap_plugin plug; diff --git a/tools/make-plugin-reg.py b/tools/make-plugin-reg.py index 63e0c0609b..12bf86ae01 100755 --- a/tools/make-plugin-reg.py +++ b/tools/make-plugin-reg.py @@ -123,7 +123,9 @@ reg_code += """ WS_DLL_PUBLIC_DEF const gchar plugin_version[] = PLUGIN_VERSION; WS_DLL_PUBLIC_DEF const gchar plugin_release[] = VERSION_RELEASE; -WS_DLL_PUBLIC_DEF void plugin_register(void) +WS_DLL_PUBLIC void plugin_register(void); + +void plugin_register(void) { """ |