2014-06-30 08:39:45 -07: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 04:12:37 -07: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-26 22:43:00 -07:00
|
|
|
|
|
|
|
#ifndef mozilla_unused_h
|
|
|
|
#define mozilla_unused_h
|
|
|
|
|
|
|
|
#include "nscore.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
//
|
|
|
|
// Suppress GCC warnings about unused return values with
|
|
|
|
// unused << SomeFuncDeclaredWarnUnusedReturnValue();
|
|
|
|
//
|
2014-06-26 18:35:39 -07:00
|
|
|
struct NS_COM_GLUE unused_t
|
|
|
|
{
|
|
|
|
};
|
2010-04-26 22:43:00 -07:00
|
|
|
|
2010-04-27 05:52:42 -07:00
|
|
|
extern const unused_t NS_COM_GLUE unused;
|
2010-04-26 22:43:00 -07:00
|
|
|
|
|
|
|
template<typename T>
|
2014-06-26 18:35:39 -07:00
|
|
|
inline void
|
|
|
|
operator<<(const unused_t& /*unused*/, const T& /*unused*/)
|
|
|
|
{
|
|
|
|
}
|
2010-04-26 22:43:00 -07:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // mozilla_unused_h
|