summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorjyasskin@chromium.org <jyasskin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-11 00:13:54 +0000
committerjyasskin@chromium.org <jyasskin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-11 00:13:54 +0000
commitfd14f8126d921d85f21960c8a994150343832a57 (patch)
tree1399c1c29700f2a8e5f1321db20b72a29fde22d2 /base
parente3ab78b482f59ccac3c61e77147769b14eabcfa6 (diff)
downloadchromium_src-fd14f8126d921d85f21960c8a994150343832a57.zip
chromium_src-fd14f8126d921d85f21960c8a994150343832a57.tar.gz
chromium_src-fd14f8126d921d85f21960c8a994150343832a57.tar.bz2
Mark EventToTypeString with ALLOW_UNUSED to fix the Official gtk build.
It's only used inside an UNSHIPPED_TRACE_EVENT1(), which causes: ../../base/message_loop/message_pump_gtk.cc:17:13: error: unused function 'EventToTypeString' [-Werror,-Wunused-function] Review URL: https://codereview.chromium.org/131323005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244283 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/message_loop/message_pump_gtk.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/message_loop/message_pump_gtk.cc b/base/message_loop/message_pump_gtk.cc
index 86d2415..93f0296 100644
--- a/base/message_loop/message_pump_gtk.cc
+++ b/base/message_loop/message_pump_gtk.cc
@@ -14,7 +14,7 @@ namespace base {
namespace {
-const char* EventToTypeString(const GdkEvent* event) {
+ALLOW_UNUSED const char* EventToTypeString(const GdkEvent* event) {
switch (event->type) {
case GDK_NOTHING: return "GDK_NOTHING";
case GDK_DELETE: return "GDK_DELETE";