summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 );
}