Replace GPLUGIN_UNUSED by G_GNUC_UNUSED.
--- a/gplugin-gtk-viewer/gplugin-gtk-viewer.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin-gtk-viewer/gplugin-gtk-viewer.c Fri Jan 25 01:11:35 2019 -0500
@@ -34,9 +34,9 @@
*****************************************************************************/
-window_closed_cb(GPLUGIN_UNUSED GtkWidget *w,
- GPLUGIN_UNUSED GdkEvent *e,
- GPLUGIN_UNUSED gpointer d)
+window_closed_cb(G_GNUC_UNUSED GtkWidget *w, + G_GNUC_UNUSED GdkEvent *e, + G_GNUC_UNUSED gpointer d) @@ -63,10 +63,10 @@
*****************************************************************************/
-internal_cb(GPLUGIN_UNUSED const gchar *n,
- GPLUGIN_UNUSED const gchar *v,
- GPLUGIN_UNUSED gpointer d,
- GPLUGIN_UNUSED GError **e)
+internal_cb(G_GNUC_UNUSED const gchar *n, + G_GNUC_UNUSED const gchar *v, + G_GNUC_UNUSED gpointer d, + G_GNUC_UNUSED GError **e) @@ -74,10 +74,10 @@
-no_default_cb(GPLUGIN_UNUSED const gchar *n,
- GPLUGIN_UNUSED const gchar *v,
- GPLUGIN_UNUSED gpointer d,
- GPLUGIN_UNUSED GError **e)
+no_default_cb(G_GNUC_UNUSED const gchar *n, + G_GNUC_UNUSED const gchar *v, + G_GNUC_UNUSED gpointer d, + G_GNUC_UNUSED GError **e) add_default_paths = FALSE;
@@ -85,10 +85,10 @@
-version_cb(GPLUGIN_UNUSED const gchar *n,
- GPLUGIN_UNUSED const gchar *v,
- GPLUGIN_UNUSED gpointer d,
- GPLUGIN_UNUSED GError **e)
+version_cb(G_GNUC_UNUSED const gchar *n, + G_GNUC_UNUSED const gchar *v, + G_GNUC_UNUSED gpointer d, + G_GNUC_UNUSED GError **e) --- a/gplugin-gtk/gplugin-gtk-plugin-info.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin-gtk/gplugin-gtk-plugin-info.c Fri Jan 25 01:11:35 2019 -0500
@@ -66,7 +66,7 @@
*****************************************************************************/
gplugin_gtk_plugin_info_expander_activate(GtkExpander *expander,
- GPLUGIN_UNUSED gpointer data)
+ G_GNUC_UNUSED gpointer data) if(gtk_expander_get_expanded(expander))
gtk_expander_set_label(expander, "More");
--- a/gplugin/gplugin-file-tree.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/gplugin-file-tree.c Fri Jan 25 01:11:35 2019 -0500
@@ -60,7 +60,7 @@
*****************************************************************************/
-gplugin_file_tree_free_leaves(GNode *n, GPLUGIN_UNUSED gpointer d) {
+gplugin_file_tree_free_leaves(GNode *n, G_GNUC_UNUSED gpointer d) { GPluginFileTreeEntry *e = n->data;
gplugin_file_tree_entry_free(e);
@@ -69,7 +69,7 @@
-gplugin_file_tree_free_non_leaves(GNode *n, GPLUGIN_UNUSED gpointer d) {
+gplugin_file_tree_free_non_leaves(GNode *n, G_GNUC_UNUSED gpointer d) { --- a/gplugin/gplugin-loader.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/gplugin-loader.c Fri Jan 25 01:11:35 2019 -0500
@@ -34,11 +34,11 @@
G_DEFINE_ABSTRACT_TYPE(GPluginLoader, gplugin_loader, G_TYPE_OBJECT);
-gplugin_loader_init(GPluginLoader *loader) {
+gplugin_loader_init(G_GNUC_UNUSED GPluginLoader *loader) { -gplugin_loader_class_init(GPluginLoaderClass *klass) {
+gplugin_loader_class_init(G_GNUC_UNUSED GPluginLoaderClass *klass) { /******************************************************************************
--- a/gplugin/gplugin-manager.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/gplugin-manager.c Fri Jan 25 01:11:35 2019 -0500
@@ -141,9 +141,9 @@
-gplugin_manager_remove_list_value(GPLUGIN_UNUSED gpointer k,
+gplugin_manager_remove_list_value(G_GNUC_UNUSED gpointer k, - GPLUGIN_UNUSED gpointer d)
+ G_GNUC_UNUSED gpointer d) @@ -717,7 +717,7 @@
-gplugin_manager_real_get_plugin_dependencies(GPluginManager *manager,
+gplugin_manager_real_get_plugin_dependencies(G_GNUC_UNUSED GPluginManager *manager, @@ -861,17 +861,17 @@
-gplugin_manager_loading_cb(GPLUGIN_UNUSED GObject *manager,
- GPLUGIN_UNUSED GPluginPlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_manager_loading_cb(G_GNUC_UNUSED GObject *manager, + G_GNUC_UNUSED GPluginPlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_manager_unloading_cb(GPLUGIN_UNUSED GObject *manager,
- GPLUGIN_UNUSED GPluginPlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_manager_unloading_cb(G_GNUC_UNUSED GObject *manager, + G_GNUC_UNUSED GPluginPlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/gplugin-native-loader.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/gplugin-native-loader.c Fri Jan 25 01:11:35 2019 -0500
@@ -93,7 +93,7 @@
* GPluginLoaderInterface API
*****************************************************************************/
-gplugin_native_loader_class_supported_extensions(GPLUGIN_UNUSED const GPluginLoaderClass *klass) {
+gplugin_native_loader_class_supported_extensions(G_GNUC_UNUSED const GPluginLoaderClass *klass) { return g_slist_append(NULL, G_MODULE_SUFFIX);
@@ -217,7 +217,7 @@
-gplugin_native_loader_load(GPLUGIN_UNUSED GPluginLoader *loader,
+gplugin_native_loader_load(G_GNUC_UNUSED GPluginLoader *loader, @@ -238,7 +238,7 @@
-gplugin_native_loader_unload(GPLUGIN_UNUSED GPluginLoader *loader,
+gplugin_native_loader_unload(G_GNUC_UNUSED GPluginLoader *loader, @@ -270,7 +270,7 @@
-gplugin_native_loader_init(GPluginNativeLoader *loader) {
+gplugin_native_loader_init(G_GNUC_UNUSED GPluginNativeLoader *loader) { --- a/gplugin/gplugin-native-plugin.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/gplugin-native-plugin.c Fri Jan 25 01:11:35 2019 -0500
@@ -71,7 +71,7 @@
* GPluginPlugin Implementation
*****************************************************************************/
-gplugin_native_plugin_iface_init(GPluginPluginInterface *iface) {
+gplugin_native_plugin_iface_init(G_GNUC_UNUSED GPluginPluginInterface *iface) { /* we just override properites from GPluginPlugin */
@@ -79,12 +79,12 @@
* GTypeModule Implementation
*****************************************************************************/
-gplugin_native_plugin_load(GTypeModule *module) {
+gplugin_native_plugin_load(G_GNUC_UNUSED GTypeModule *module) { -gplugin_native_plugin_unload(GTypeModule *module) {
+gplugin_native_plugin_unload(G_GNUC_UNUSED GTypeModule *module) { /******************************************************************************
@@ -185,7 +185,7 @@
-gplugin_native_plugin_init(GPluginNativePlugin *plugin) {
+gplugin_native_plugin_init(G_GNUC_UNUSED GPluginNativePlugin *plugin) { --- a/gplugin/gplugin-options.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/gplugin-options.c Fri Jan 25 01:11:35 2019 -0500
@@ -41,10 +41,10 @@
static gchar **paths = NULL;
-gplugin_options_no_default_paths_cb(GPLUGIN_UNUSED const gchar *n,
- GPLUGIN_UNUSED const gchar *v,
- GPLUGIN_UNUSED gpointer d,
- GPLUGIN_UNUSED GError **e)
+gplugin_options_no_default_paths_cb(G_GNUC_UNUSED const gchar *n, + G_GNUC_UNUSED const gchar *v, + G_GNUC_UNUSED gpointer d, + G_GNUC_UNUSED GError **e) add_default_paths = FALSE;
@@ -67,10 +67,10 @@
-gplugin_options_post_parse_cb(GPLUGIN_UNUSED GOptionContext *ctx,
- GPLUGIN_UNUSED GOptionGroup *group,
- GPLUGIN_UNUSED gpointer data,
- GPLUGIN_UNUSED GError **error)
+gplugin_options_post_parse_cb(G_GNUC_UNUSED GOptionContext *ctx, + G_GNUC_UNUSED GOptionGroup *group, + G_GNUC_UNUSED gpointer data, + G_GNUC_UNUSED GError **error) --- a/gplugin/gplugin-plugin-info.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/gplugin-plugin-info.c Fri Jan 25 01:11:35 2019 -0500
@@ -453,7 +453,7 @@
-gplugin_plugin_info_init(GPluginPluginInfo *info) {
+gplugin_plugin_info_init(G_GNUC_UNUSED GPluginPluginInfo *info) { --- a/gplugin/gplugin-private.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/gplugin-private.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,10 +19,10 @@
/* A GSignalAccumulator that stops emission if a handler returns FALSE */
-gplugin_boolean_accumulator(GPLUGIN_UNUSED GSignalInvocationHint *hint,
+gplugin_boolean_accumulator(G_GNUC_UNUSED GSignalInvocationHint *hint, const GValue *handler_return,
- GPLUGIN_UNUSED gpointer data)
+ G_GNUC_UNUSED gpointer data) gboolean continue_emission;
gboolean handler_returned;
--- a/gplugin/gplugin-query.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/gplugin-query.c Fri Jan 25 01:11:35 2019 -0500
@@ -36,10 +36,10 @@
*****************************************************************************/
-verbosity_cb(GPLUGIN_UNUSED const gchar *n,
- GPLUGIN_UNUSED const gchar *v,
- GPLUGIN_UNUSED gpointer d,
- GPLUGIN_UNUSED GError **e)
+verbosity_cb(G_GNUC_UNUSED const gchar *n, + G_GNUC_UNUSED const gchar *v, + G_GNUC_UNUSED gpointer d, + G_GNUC_UNUSED GError **e) @@ -47,10 +47,10 @@
-full_verbosity_cb(GPLUGIN_UNUSED const gchar *n,
- GPLUGIN_UNUSED const gchar *v,
- GPLUGIN_UNUSED gpointer d,
- GPLUGIN_UNUSED GError **e)
+full_verbosity_cb(G_GNUC_UNUSED const gchar *n, + G_GNUC_UNUSED const gchar *v, + G_GNUC_UNUSED gpointer d, + G_GNUC_UNUSED GError **e) @@ -58,10 +58,10 @@
-internal_cb(GPLUGIN_UNUSED const gchar *n,
- GPLUGIN_UNUSED const gchar *v,
- GPLUGIN_UNUSED gpointer d,
- GPLUGIN_UNUSED GError **e)
+internal_cb(G_GNUC_UNUSED const gchar *n, + G_GNUC_UNUSED const gchar *v, + G_GNUC_UNUSED gpointer d, + G_GNUC_UNUSED GError **e) @@ -69,10 +69,10 @@
-version_cb(GPLUGIN_UNUSED const gchar *n,
- GPLUGIN_UNUSED const gchar *v,
- GPLUGIN_UNUSED gpointer d,
- GPLUGIN_UNUSED GError **e)
+version_cb(G_GNUC_UNUSED const gchar *n, + G_GNUC_UNUSED const gchar *v, + G_GNUC_UNUSED gpointer d, + G_GNUC_UNUSED GError **e) printf("gplugin-query %s\n", GPLUGIN_VERSION);
@@ -82,10 +82,10 @@
-list_cb(GPLUGIN_UNUSED const gchar *n,
- GPLUGIN_UNUSED const gchar *v,
- GPLUGIN_UNUSED gpointer d,
- GPLUGIN_UNUSED GError **e)
+list_cb(G_GNUC_UNUSED const gchar *n, + G_GNUC_UNUSED const gchar *v, + G_GNUC_UNUSED gpointer d, + G_GNUC_UNUSED GError **e) --- a/gplugin/tests/bad-plugins/query-error.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/bad-plugins/query-error.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,22 +19,22 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { g_set_error(error, GPLUGIN_DOMAIN, 0, "expected error");
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/bind-local/bind-local.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/bind-local/bind-local.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
@@ -29,15 +29,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/dynamic-type/dynamic-type-provider.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/dynamic-type/dynamic-type-provider.c Fri Jan 25 01:11:35 2019 -0500
@@ -23,21 +23,21 @@
G_DEFINE_DYNAMIC_TYPE(DynamicTest, dynamic_test, G_TYPE_OBJECT);
-dynamic_test_init(DynamicTest *inst) {
+dynamic_test_init(G_GNUC_UNUSED DynamicTest *inst) { g_message("instance created");
-dynamic_test_class_finalize(DynamicTestClass *klass) {
+dynamic_test_class_finalize(G_GNUC_UNUSED DynamicTestClass *klass) { -dynamic_test_class_init(DynamicTestClass *klass) {
+dynamic_test_class_init(G_GNUC_UNUSED DynamicTestClass *klass) { g_message("class created");
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
"gplugin/dynamic-type-provider",
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
@@ -46,15 +46,15 @@
-gplugin_load(GPluginNativePlugin *plugin, GError **error) {
+gplugin_load(GPluginNativePlugin *plugin, G_GNUC_UNUSED GError **error) { dynamic_test_register_type(G_TYPE_MODULE(plugin));
-gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/dynamic-type/dynamic-type-user.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/dynamic-type/dynamic-type-user.c Fri Jan 25 01:11:35 2019 -0500
@@ -23,7 +23,7 @@
static DynamicTest *test_object = NULL;
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { const gchar * const dependencies[] = {
"gplugin/dynamic-type-provider",
@@ -38,7 +38,7 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin, GError **error) {
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, GError **error) { test_object = g_object_new(DYNAMIC_TYPE_TEST, NULL);
if (test_object == NULL) {
@@ -51,7 +51,7 @@
-gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin, GError **error) {
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, GError **error) { g_object_unref(test_object);
if (DYNAMIC_IS_TEST(test_object)) {
--- a/gplugin/tests/id-collision/id-collision1.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/id-collision/id-collision1.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
@@ -29,15 +29,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/id-collision/id-collision2.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/id-collision/id-collision2.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
@@ -29,15 +29,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/load-on-query-fail/load-on-query-fail.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/load-on-query-fail/load-on-query-fail.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
"gplugin/load-on-query-fail",
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
@@ -29,7 +29,7 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin, GError **error) {
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, GError **error) { g_set_error(error, GPLUGIN_DOMAIN, 0, "called %d times", count++);
@@ -38,8 +38,8 @@
-gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/load-on-query-pass/load-on-query-pass.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/load-on-query-pass/load-on-query-pass.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
@@ -29,15 +29,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/plugins/basic-plugin.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/plugins/basic-plugin.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { const gchar * const authors[] = {
@@ -41,15 +41,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/plugins/broken-dependent-plugin.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/plugins/broken-dependent-plugin.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { const gchar * const dependencies[] = {
"gplugin/does-not-exist",
@@ -34,15 +34,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/plugins/dependent-plugin.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/plugins/dependent-plugin.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { const gchar * const dependencies[] = {
@@ -35,15 +35,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/plugins/load-exception.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/plugins/load-exception.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
"gplugin/native-load-exception",
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
@@ -28,15 +28,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/plugins/load-failed.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/plugins/load-failed.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
"gplugin/native-load-failed",
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
@@ -28,15 +28,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin, GError **error) {
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, GError **error) { g_set_error(error, GPLUGIN_DOMAIN, 0, "expected error");
-gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/plugins/unload-failed.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/plugins/unload-failed.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
"gplugin/native-unload-failed",
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
@@ -28,14 +28,14 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin, GError **error) {
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, GError **error) { g_set_error(error, GPLUGIN_DOMAIN, 0, "expected error");
--- a/gplugin/tests/test-plugin-info.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/test-plugin-info.c Fri Jan 25 01:11:35 2019 -0500
@@ -346,8 +346,8 @@
-test_gplugin_version_compare(GPLUGIN_UNUSED const gchar *v1,
- GPLUGIN_UNUSED const gchar *v2) {
+test_gplugin_version_compare(G_GNUC_UNUSED const gchar *v1, + G_GNUC_UNUSED const gchar *v2) { --- a/gplugin/tests/test-signals.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/test-signals.c Fri Jan 25 01:11:35 2019 -0500
@@ -31,9 +31,9 @@
*****************************************************************************/
-test_gplugin_manager_signals_normal_loading(GPLUGIN_UNUSED GObject *manager,
- GPLUGIN_UNUSED GPluginPlugin *plugin,
- GPLUGIN_UNUSED GError **error,
+test_gplugin_manager_signals_normal_loading(G_GNUC_UNUSED GObject *manager, + G_GNUC_UNUSED GPluginPlugin *plugin, + G_GNUC_UNUSED GError **error, TestGPluginManagerSignalsData *data = (TestGPluginManagerSignalsData *)d;
@@ -44,8 +44,8 @@
-test_gplugin_manager_signals_normal_loaded(GPLUGIN_UNUSED GObject *manager,
- GPLUGIN_UNUSED GPluginPlugin *plugin,
+test_gplugin_manager_signals_normal_loaded(G_GNUC_UNUSED GObject *manager, + G_GNUC_UNUSED GPluginPlugin *plugin, TestGPluginManagerSignalsData *data = (TestGPluginManagerSignalsData *)d;
@@ -54,9 +54,9 @@
-test_gplugin_manager_signals_normal_unloading(GPLUGIN_UNUSED GObject *manager,
- GPLUGIN_UNUSED GPluginPlugin *plugin,
- GPLUGIN_UNUSED GError **error,
+test_gplugin_manager_signals_normal_unloading(G_GNUC_UNUSED GObject *manager, + G_GNUC_UNUSED GPluginPlugin *plugin, + G_GNUC_UNUSED GError **error, TestGPluginManagerSignalsData *data = (TestGPluginManagerSignalsData *)d;
@@ -67,8 +67,8 @@
-test_gplugin_manager_signals_normal_unloaded(GPLUGIN_UNUSED GObject *manager,
- GPLUGIN_UNUSED GPluginPlugin *plugin,
+test_gplugin_manager_signals_normal_unloaded(G_GNUC_UNUSED GObject *manager, + G_GNUC_UNUSED GPluginPlugin *plugin, TestGPluginManagerSignalsData *data = (TestGPluginManagerSignalsData *)d;
@@ -77,8 +77,8 @@
-test_gplugin_manager_signals_stop_loading(GPLUGIN_UNUSED GObject *manager,
- GPLUGIN_UNUSED GPluginPlugin *plugin,
+test_gplugin_manager_signals_stop_loading(G_GNUC_UNUSED GObject *manager, + G_GNUC_UNUSED GPluginPlugin *plugin, @@ -92,8 +92,8 @@
-test_gplugin_manager_signals_stop_unloading(GPLUGIN_UNUSED GObject *manager,
- GPLUGIN_UNUSED GPluginPlugin *plugin,
+test_gplugin_manager_signals_stop_unloading(G_GNUC_UNUSED GObject *manager, + G_GNUC_UNUSED GPluginPlugin *plugin, @@ -107,8 +107,8 @@
-test_gplugin_manager_signals_load_failed(GPLUGIN_UNUSED GObject *manager,
- GPLUGIN_UNUSED GPluginPlugin *plugin,
+test_gplugin_manager_signals_load_failed(G_GNUC_UNUSED GObject *manager, + G_GNUC_UNUSED GPluginPlugin *plugin, TestGPluginManagerSignalsData *data = (TestGPluginManagerSignalsData *)d;
--- a/gplugin/tests/test-versioned-dependencies.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/test-versioned-dependencies.c Fri Jan 25 01:11:35 2019 -0500
@@ -27,7 +27,7 @@
*****************************************************************************/
_test_plugin_load_and_has_dependent(GPluginPlugin *dependent,
+ G_GNUC_UNUSED const gchar *id) GPluginPlugin *plugin = NULL;
GSList *deps = NULL, *l = NULL;
--- a/gplugin/tests/unresolved-symbol/unresolved-symbol.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/unresolved-symbol/unresolved-symbol.c Fri Jan 25 01:11:35 2019 -0500
@@ -21,22 +21,22 @@
void some_unresolved_symbol(void);
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { some_unresolved_symbol();
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/versioned-dependencies/bar.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/versioned-dependencies/bar.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
@@ -29,15 +29,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/versioned-dependencies/baz.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/versioned-dependencies/baz.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
@@ -29,15 +29,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/versioned-dependencies/exact1.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/versioned-dependencies/exact1.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
@@ -29,15 +29,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/versioned-dependencies/exact2.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/versioned-dependencies/exact2.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
@@ -29,15 +29,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/versioned-dependencies/fez.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/versioned-dependencies/fez.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
@@ -29,15 +29,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/versioned-dependencies/greater-equal.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/versioned-dependencies/greater-equal.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
"gplugin/test-greater-equal",
@@ -29,15 +29,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/versioned-dependencies/greater.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/versioned-dependencies/greater.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
@@ -29,15 +29,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/versioned-dependencies/less-equal.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/versioned-dependencies/less-equal.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
"gplugin/test-less-equal",
@@ -29,15 +29,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/versioned-dependencies/less.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/versioned-dependencies/less.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
@@ -29,15 +29,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/versioned-dependencies/no-version.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/versioned-dependencies/no-version.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
"gplugin/test-no-version",
@@ -28,15 +28,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/gplugin/tests/versioned-dependencies/super-dependent.c Fri Jan 25 00:50:20 2019 -0500
+++ b/gplugin/tests/versioned-dependencies/super-dependent.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { const gchar * const dependencies[] = {
"gplugin/test-no-version",
"gplugin/test-exact1==1.0",
@@ -44,15 +44,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/lua/gplugin-lua-core.c Fri Jan 25 00:50:20 2019 -0500
+++ b/lua/gplugin-lua-core.c Fri Jan 25 01:11:35 2019 -0500
@@ -23,7 +23,7 @@
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { const gchar * const authors[] = {
"Gary Kramlich <grim@reaperworld.com>",
@@ -49,7 +49,7 @@
gplugin_load(GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+ G_GNUC_UNUSED GError **error) gplugin_lua_loader_register(plugin);
gplugin_lua_plugin_register(plugin);
@@ -60,8 +60,8 @@
-gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/lua/gplugin-lua-loader.c Fri Jan 25 00:50:20 2019 -0500
+++ b/lua/gplugin-lua-loader.c Fri Jan 25 01:11:35 2019 -0500
@@ -43,7 +43,7 @@
-_gplugin_lua_loader_load_unload_plugin(GPLUGIN_UNUSED GPluginLoader *loader,
+_gplugin_lua_loader_load_unload_plugin(G_GNUC_UNUSED GPluginLoader *loader, @@ -77,7 +77,7 @@
* GPluginLoaderInterface API
*****************************************************************************/
-gplugin_lua_loader_class_supported_extensions(GPLUGIN_UNUSED const GPluginLoaderClass *klass) {
+gplugin_lua_loader_class_supported_extensions(G_GNUC_UNUSED const GPluginLoaderClass *klass) { exts = g_slist_append(exts, "lua");
@@ -192,11 +192,11 @@
*****************************************************************************/
-gplugin_lua_loader_init(GPluginLuaLoader *loader) {
+gplugin_lua_loader_init(G_GNUC_UNUSED GPluginLuaLoader *loader) { -gplugin_lua_loader_class_finalize(GPluginLuaLoaderClass *klass) {
+gplugin_lua_loader_class_finalize(G_GNUC_UNUSED GPluginLuaLoaderClass *klass) { --- a/lua/gplugin-lua-plugin.c Fri Jan 25 00:50:20 2019 -0500
+++ b/lua/gplugin-lua-plugin.c Fri Jan 25 01:11:35 2019 -0500
@@ -62,7 +62,7 @@
* GPluginPlugin Implementation
*****************************************************************************/
-gplugin_lua_plugin_iface_init(GPluginPluginInterface *iface) {
+gplugin_lua_plugin_iface_init(G_GNUC_UNUSED GPluginPluginInterface *iface) { /******************************************************************************
@@ -145,11 +145,11 @@
-gplugin_lua_plugin_init(GPluginLuaPlugin *plugin) {
+gplugin_lua_plugin_init(G_GNUC_UNUSED GPluginLuaPlugin *plugin) { -gplugin_lua_plugin_class_finalize(GPluginLuaPluginClass *klass) {
+gplugin_lua_plugin_class_finalize(G_GNUC_UNUSED GPluginLuaPluginClass *klass) { --- a/meson.build Fri Jan 25 00:50:20 2019 -0500
+++ b/meson.build Fri Jan 25 01:11:35 2019 -0500
@@ -77,20 +77,6 @@
output : 'gplugin-version.sh',
configuration : version_conf)
-# check if we're using gcc
-if compiler.get_id() == 'gcc' or host_machine.platform() == 'darwin'
- '-DGPLUGIN_UNUSED=__attribute__((unused))',
toplevel_inc = include_directories('.')
--- a/plugins/gplugin-license-check.c Fri Jan 25 00:50:20 2019 -0500
+++ b/plugins/gplugin-license-check.c Fri Jan 25 01:11:35 2019 -0500
@@ -19,7 +19,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { const gchar * const authors[] = {
"Gary Kramlich <grim@reaperworld.com>",
@@ -38,15 +38,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/python/gplugin-python-core.c Fri Jan 25 00:50:20 2019 -0500
+++ b/python/gplugin-python-core.c Fri Jan 25 01:11:35 2019 -0500
@@ -22,7 +22,7 @@
#include "gplugin-python-plugin.h"
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { const gchar * const authors[] = {
"Gary Kramlich <grim@reaperworld.com>",
@@ -48,7 +48,7 @@
gplugin_load(GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+ G_GNUC_UNUSED GError **error) gplugin_python_plugin_register(plugin);
gplugin_python_loader_register(plugin);
@@ -59,8 +59,8 @@
-gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/python/gplugin-python-loader.c Fri Jan 25 00:50:20 2019 -0500
+++ b/python/gplugin-python-loader.c Fri Jan 25 01:11:35 2019 -0500
@@ -45,14 +45,14 @@
* GPluginLoader Implementation
*****************************************************************************/
-gplugin_python_loader_class_supported_extensions(GPLUGIN_UNUSED const GPluginLoaderClass *klass) {
+gplugin_python_loader_class_supported_extensions(G_GNUC_UNUSED const GPluginLoaderClass *klass) { return g_slist_append(NULL, "py");
-gplugin_python_loader_query(GPLUGIN_UNUSED GPluginLoader *loader,
+gplugin_python_loader_query(G_GNUC_UNUSED GPluginLoader *loader, - GPLUGIN_UNUSED GError **error)
+ G_GNUC_UNUSED GError **error) GPluginPlugin *plugin = NULL;
@@ -179,7 +179,7 @@
-gplugin_python_loader_load(GPLUGIN_UNUSED GPluginLoader *loader,
+gplugin_python_loader_load(G_GNUC_UNUSED GPluginLoader *loader, @@ -211,7 +211,7 @@
-gplugin_python_loader_unload(GPLUGIN_UNUSED GPluginLoader *loader,
+gplugin_python_loader_unload(G_GNUC_UNUSED GPluginLoader *loader, @@ -349,11 +349,12 @@
*****************************************************************************/
-gplugin_python_loader_init(GPluginPythonLoader *loader) {
+gplugin_python_loader_init(G_GNUC_UNUSED GPluginPythonLoader *loader) { -gplugin_python_loader_class_finalize(GPluginPythonLoaderClass *klass) {
+gplugin_python_loader_class_finalize(G_GNUC_UNUSED GPluginPythonLoaderClass *klass) --- a/python/gplugin-python-plugin.c Fri Jan 25 00:50:20 2019 -0500
+++ b/python/gplugin-python-plugin.c Fri Jan 25 01:11:35 2019 -0500
@@ -70,7 +70,7 @@
* GPluginPlugin Implementation
*****************************************************************************/
-gplugin_python_plugin_iface_init(GPluginPluginInterface *iface) {
+gplugin_python_plugin_iface_init(G_GNUC_UNUSED GPluginPluginInterface *iface) { /******************************************************************************
@@ -258,11 +258,12 @@
-gplugin_python_plugin_init(GPluginPythonPlugin *plugin) {
+gplugin_python_plugin_init(G_GNUC_UNUSED GPluginPythonPlugin *plugin) { -gplugin_python_plugin_class_finalize(GPluginPythonPluginClass *klass) {
+gplugin_python_plugin_class_finalize(G_GNUC_UNUSED GPluginPythonPluginClass *klass) --- a/tcc/gplugin-tcc-core.c Fri Jan 25 00:50:20 2019 -0500
+++ b/tcc/gplugin-tcc-core.c Fri Jan 25 01:11:35 2019 -0500
@@ -23,7 +23,7 @@
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { const gchar * const authors[] = {
"Eion Robb <eion@robbmob.com>",
@@ -48,7 +48,7 @@
gplugin_load(GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+ G_GNUC_UNUSED GError **error) gplugin_tcc_loader_register(plugin);
gplugin_tcc_plugin_register(plugin);
@@ -59,8 +59,8 @@
-gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/tcc/gplugin-tcc-loader.c Fri Jan 25 00:50:20 2019 -0500
+++ b/tcc/gplugin-tcc-loader.c Fri Jan 25 01:11:35 2019 -0500
@@ -33,7 +33,7 @@
* GPluginLoaderInterface API
*****************************************************************************/
-gplugin_tcc_loader_class_supported_extensions(GPLUGIN_UNUSED const GPluginLoaderClass *klass) {
+gplugin_tcc_loader_class_supported_extensions(G_GNUC_UNUSED const GPluginLoaderClass *klass) { exts = g_slist_append(exts, "c");
@@ -110,7 +110,7 @@
-gplugin_tcc_loader_load(GPLUGIN_UNUSED GPluginLoader *loader,
+gplugin_tcc_loader_load(G_GNUC_UNUSED GPluginLoader *loader, @@ -128,7 +128,7 @@
-gplugin_tcc_loader_unload(GPLUGIN_UNUSED GPluginLoader *loader,
+gplugin_tcc_loader_unload(G_GNUC_UNUSED GPluginLoader *loader, --- a/tcc/tests/plugins/basic-plugin.c Fri Jan 25 00:50:20 2019 -0500
+++ b/tcc/tests/plugins/basic-plugin.c Fri Jan 25 01:11:35 2019 -0500
@@ -18,7 +18,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { const gchar * const authors[] = {
@@ -40,15 +40,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/tcc/tests/plugins/dependent.c Fri Jan 25 00:50:20 2019 -0500
+++ b/tcc/tests/plugins/dependent.c Fri Jan 25 01:11:35 2019 -0500
@@ -18,7 +18,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { const gchar * const dependencies[] = {
@@ -34,15 +34,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/tcc/tests/plugins/load-exception.c Fri Jan 25 00:50:20 2019 -0500
+++ b/tcc/tests/plugins/load-exception.c Fri Jan 25 01:11:35 2019 -0500
@@ -18,7 +18,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
"gplugin/native-load-exception",
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
@@ -27,15 +27,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/tcc/tests/plugins/load-failed.c Fri Jan 25 00:50:20 2019 -0500
+++ b/tcc/tests/plugins/load-failed.c Fri Jan 25 01:11:35 2019 -0500
@@ -18,7 +18,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
"gplugin/native-load-failed",
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
@@ -27,15 +27,15 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin, GError **error) {
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, GError **error) { g_set_error(error, GPLUGIN_DOMAIN, 0, "expected error");
-gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) --- a/tcc/tests/plugins/unload-failed.c Fri Jan 25 00:50:20 2019 -0500
+++ b/tcc/tests/plugins/unload-failed.c Fri Jan 25 01:11:35 2019 -0500
@@ -18,7 +18,7 @@
#include <gplugin-native.h>
G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
+gplugin_query(G_GNUC_UNUSED GError **error) { return gplugin_plugin_info_new(
"gplugin/native-unload-failed",
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
@@ -27,14 +27,14 @@
-gplugin_load(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
+gplugin_load(G_GNUC_UNUSED GPluginNativePlugin *plugin, + G_GNUC_UNUSED GError **error) -gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin, GError **error) {
+gplugin_unload(G_GNUC_UNUSED GPluginNativePlugin *plugin, GError **error) { g_set_error(error, GPLUGIN_DOMAIN, 0, "expected error");