blob: ba7b746180a1a594959cd8031fd10d32259db2f0 [file] [log] [blame]
Tom Andersond264bd3a2021-03-26 21:47:561// Copyright 2021 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef UI_GTK_LOG_NOOP_H_
6#define UI_GTK_LOG_NOOP_H_
7
8// This is a no-op logger used to ignore error messages reported by generated
9// stub initializers. Some missing symbols are expected since they may only be
10// available in specific versions of GTK.
11struct LogNoop {
12 template <typename T>
13 LogNoop operator<<(const T& t) {
14 return *this;
15 }
16};
17
18#endif // UI_GTK_LOG_NOOP_H_