aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/ScintillaGTKAccessible.cxx
diff options
context:
space:
mode:
authorColomban Wendling <ban@herbesfolles.org>2016-10-23 18:05:00 +0200
committerColomban Wendling <ban@herbesfolles.org>2016-10-23 18:05:00 +0200
commitb2412a3e9530a9644794b56ca50ef03cd6ac1af2 (patch)
tree4fb6e05abd1bd518eb3d35f4661d8b45d72be853 /gtk/ScintillaGTKAccessible.cxx
parente9657ea868fd2fc92175e98954e077b58805efb8 (diff)
downloadscintilla-mirror-b2412a3e9530a9644794b56ca50ef03cd6ac1af2.tar.gz
Bug [#1874]. GTK: Avoid warnings about unused parameters
Either remove the parameter name if it is never used, or mark it with G_GNUC_UNUSED when it might be used depending on some preprocessor flags.
Diffstat (limited to 'gtk/ScintillaGTKAccessible.cxx')
-rw-r--r--gtk/ScintillaGTKAccessible.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/ScintillaGTKAccessible.cxx b/gtk/ScintillaGTKAccessible.cxx
index e6b54be49..13511d5f5 100644
--- a/gtk/ScintillaGTKAccessible.cxx
+++ b/gtk/ScintillaGTKAccessible.cxx
@@ -949,7 +949,7 @@ static gpointer scintilla_object_accessible_parent_class = NULL;
// @p parent_type is only required on GTK 3.2 to 3.6, and only on the first call
-static GType scintilla_object_accessible_get_type(GType parent_type) {
+static GType scintilla_object_accessible_get_type(GType parent_type G_GNUC_UNUSED) {
static volatile gsize type_id_result = 0;
if (g_once_init_enter(&type_id_result)) {
@@ -1033,7 +1033,7 @@ static AtkObject *scintilla_object_accessible_new(GType parent_type, GObject *ob
// @p widget the widget.
// @p cache pointer to store the AtkObject between repeated calls. Might or might not be filled.
// @p widget_parent_class pointer to the widget's parent class (to chain up method calls).
-AtkObject *ScintillaGTKAccessible::WidgetGetAccessibleImpl(GtkWidget *widget, AtkObject **cache, gpointer widget_parent_class) {
+AtkObject *ScintillaGTKAccessible::WidgetGetAccessibleImpl(GtkWidget *widget, AtkObject **cache, gpointer widget_parent_class G_GNUC_UNUSED) {
#if HAVE_GTK_A11Y_H // just instantiate the accessible
if (*cache == NULL) {
*cache = scintilla_object_accessible_new(0, G_OBJECT(widget));