aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gtk/PlatGTK.cxx2
-rw-r--r--gtk/ScintillaGTK.cxx10
-rw-r--r--gtk/ScintillaGTK.h2
-rw-r--r--gtk/ScintillaGTKAccessible.cxx4
4 files changed, 9 insertions, 9 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index 1629818ef..3b96418be 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -550,7 +550,7 @@ static void PathRoundRectangle(cairo_t *context, double left, double top, double
}
void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize, ColourDesired fill, int alphaFill,
- ColourDesired outline, int alphaOutline, int flags) {
+ ColourDesired outline, int alphaOutline, int /*flags*/) {
if (context && rc.Width() > 0) {
ColourDesired cdFill(fill.AsLong());
cairo_set_source_rgba(context,
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 70261bce1..32c541cc7 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -451,7 +451,7 @@ public:
}
-gint ScintillaGTK::FocusInThis(GtkWidget *widget) {
+gint ScintillaGTK::FocusInThis(GtkWidget *) {
try {
SetFocusState(true);
if (im_context != NULL) {
@@ -477,7 +477,7 @@ gint ScintillaGTK::FocusIn(GtkWidget *widget, GdkEventFocus * /*event*/) {
return sciThis->FocusInThis(widget);
}
-gint ScintillaGTK::FocusOutThis(GtkWidget *widget) {
+gint ScintillaGTK::FocusOutThis(GtkWidget *) {
try {
SetFocusState(false);
@@ -2101,7 +2101,7 @@ gboolean ScintillaGTK::KeyRelease(GtkWidget *widget, GdkEventKey *event) {
#if GTK_CHECK_VERSION(3,0,0)
-gboolean ScintillaGTK::DrawPreeditThis(GtkWidget *widget, cairo_t *cr) {
+gboolean ScintillaGTK::DrawPreeditThis(GtkWidget *, cairo_t *cr) {
try {
PreEditString pes(im_context);
PangoLayout *layout = gtk_widget_create_pango_layout(PWidget(wText), pes.str);
@@ -2123,7 +2123,7 @@ gboolean ScintillaGTK::DrawPreedit(GtkWidget *widget, cairo_t *cr, ScintillaGTK
#else
-gboolean ScintillaGTK::ExposePreeditThis(GtkWidget *widget, GdkEventExpose *ose) {
+gboolean ScintillaGTK::ExposePreeditThis(GtkWidget *widget, GdkEventExpose *) {
try {
PreEditString pes(im_context);
PangoLayout *layout = gtk_widget_create_pango_layout(PWidget(wText), pes.str);
@@ -3097,7 +3097,7 @@ void scintilla_release_resources(void) {
* recognize gpointer-derived types. Note that SCNotificaiton
* is always allocated on stack so copying is not appropriate. */
static void *copy_(void *src) { return src; }
-static void free_(void *doc) { }
+static void free_(void *) { }
GType scnotification_get_type(void) {
static gsize type_id = 0;
diff --git a/gtk/ScintillaGTK.h b/gtk/ScintillaGTK.h
index e98176328..6b400fecc 100644
--- a/gtk/ScintillaGTK.h
+++ b/gtk/ScintillaGTK.h
@@ -247,7 +247,7 @@ private:
class GObjectWatcher {
GObject *weakRef;
- void WeakNotifyThis(GObject *obj) {
+ void WeakNotifyThis(GObject *obj G_GNUC_UNUSED) {
PLATFORM_ASSERT(obj == weakRef);
Destroyed();
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));