[Geany-devel] [PATCH 2/3] Prevent -Wmissing-prototypes report warning when compiling a plugin

Jiří Techet techet at xxxxx
Wed Jun 9 19:40:58 UTC 2010


Signed-off-by: Jiří Techet <techet at gmail.com>
---
 src/plugindata.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/plugindata.h b/src/plugindata.h
index aff3143..9facecb 100644
--- a/src/plugindata.h
+++ b/src/plugindata.h
@@ -64,6 +64,7 @@ enum {
  * - Geany ABI data types are compatible with this plugin.
  * - Geany sources provide the required API for this plugin. */
 #define PLUGIN_VERSION_CHECK(api_required) \
+	gint plugin_version_check(gint abi_ver);\
 	gint plugin_version_check(gint abi_ver) \
 	{ \
 		if (abi_ver != GEANY_ABI_VERSION) \
@@ -111,6 +112,7 @@ GeanyPlugin;
  * extra PluginInfo features (such as an icon), so we don't need to break API
  * compatibility. Alternatively just add a new macro, PLUGIN_SET_INFO_FULL(). -ntrel */
 #define PLUGIN_SET_INFO(p_name, p_description, p_version, p_author) \
+	void plugin_set_info(PluginInfo* info);\
 	void plugin_set_info(PluginInfo* info) \
 	{ \
 		info->name = (p_name); \
-- 
1.7.0.4




More information about the Devel mailing list