summaryrefslogtreecommitdiff
path: root/include/LibreOfficeKit
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-04-09 00:51:29 +0300
committerTor Lillqvist <tml@collabora.com>2015-04-09 00:51:40 +0300
commitc68051372c88c20d24f387007b6be913bdee8370 (patch)
tree7d146285c3abd5e829d82e7ded50bbec2f63249c /include/LibreOfficeKit
parent8959ace44076273fc5398e8973005f5ba159b6c0 (diff)
WaE: ‘LibreOfficeKit* lok_init(const char*)’ defined but not used
Change-Id: I1b5594173b912c8ac54bb54718ce06bee47e2ed9
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitInit.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitInit.h b/include/LibreOfficeKit/LibreOfficeKitInit.h
index c0d3d5d06e0e..4b06e8ddf7da 100644
--- a/include/LibreOfficeKit/LibreOfficeKitInit.h
+++ b/include/LibreOfficeKit/LibreOfficeKitInit.h
@@ -203,7 +203,11 @@ static LibreOfficeKit *lok_init_2( const char *install_path, const char *user_p
return pSym2( install_path, user_profile_path );
}
-static LibreOfficeKit *lok_init( const char *install_path )
+static
+#ifdef __GNUC__
+__attribute__((used))
+#endif
+LibreOfficeKit *lok_init( const char *install_path )
{
return lok_init_2( install_path, NULL );
}