From 1e474323f632f9ffedf09c967987cd5c6c4eb76d Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 14 Oct 2020 12:05:14 -0700 Subject: [PATCH] Avoid unused function warning when wxUSE_LOG_TRACE==0 --- src/gtk/window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index e7c8ecbe39..434f025f5d 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -309,6 +309,7 @@ static wxPoint gs_lastGesturePoint; // the trace mask used for the focus debugging messages #define TRACE_FOCUS wxT("focus") +#if wxUSE_LOG_TRACE // Function used to dump a brief description of a window. static wxString wxDumpWindow(wxWindowGTK* win) @@ -326,6 +327,7 @@ wxString wxDumpWindow(wxWindowGTK* win) return s; } +#endif // wxUSE_LOG_TRACE // A handy function to run from under gdb to show information about the given // GtkWidget. Right now it only shows its type, we could enhance it to show