2014-06-30 15:39:45 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-04-27 05:43:00 +00:00
|
|
|
|
|
|
|
#ifndef mozilla_unused_h
|
|
|
|
#define mozilla_unused_h
|
|
|
|
|
2014-08-29 08:11:00 +00:00
|
|
|
#include "mozilla/Types.h"
|
2010-04-27 05:43:00 +00:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
//
|
|
|
|
// Suppress GCC warnings about unused return values with
|
|
|
|
// unused << SomeFuncDeclaredWarnUnusedReturnValue();
|
|
|
|
//
|
2014-08-27 22:47:27 +00:00
|
|
|
struct unused_t
|
2014-06-27 01:35:39 +00:00
|
|
|
{
|
|
|
|
};
|
2010-04-27 05:43:00 +00:00
|
|
|
|
2014-08-29 08:11:00 +00:00
|
|
|
extern MFBT_DATA const unused_t unused;
|
2010-04-27 05:43:00 +00:00
|
|
|
|
|
|
|
template<typename T>
|
2014-06-27 01:35:39 +00:00
|
|
|
inline void
|
|
|
|
operator<<(const unused_t& /*unused*/, const T& /*unused*/)
|
|
|
|
{
|
|
|
|
}
|
2010-04-27 05:43:00 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // mozilla_unused_h
|