summaryrefslogtreecommitdiffstats
path: root/chromium/ui/gtk/log_noop.h
blob: ba7b746180a1a594959cd8031fd10d32259db2f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_GTK_LOG_NOOP_H_
#define UI_GTK_LOG_NOOP_H_

// This is a no-op logger used to ignore error messages reported by generated
// stub initializers.  Some missing symbols are expected since they may only be
// available in specific versions of GTK.
struct LogNoop {
  template <typename T>
  LogNoop operator<<(const T& t) {
    return *this;
  }
};

#endif  // UI_GTK_LOG_NOOP_H_