xpcom/xpcom-config.h.in
author Nathan Froyd <froydnj@mozilla.com>
Mon, 02 Jul 2018 20:36:49 -0400
changeset 424774 9136af7a5017897cf5ed371b5b595e6d864b261e
parent 328357 77717bd5534f6b8c6d170a697a13fd9e61627852
child 456220 699954de14e37c54a20651b01351365c30c5f932
permissions -rw-r--r--
Bug 1472805 - silence more clang-cl warnings; r=chmanchester clang seems to have decided that a new warning, -Wused-but-marked-unused, is useful. For the purposes of our codebase, where we add __attribute__((unused)) explicitly to avoid warnings about unused things, this new warning is useless. The new warning is also quite noisy, given that we have unused things in commonly-used headers like Assertions.h. So disable the warning.

/* 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/. */

/* Global defines needed by xpcom clients */

#ifndef _XPCOM_CONFIG_H_
#define _XPCOM_CONFIG_H_

/* Define this to throw() if the compiler complains about 
 * constructors returning NULL
 */
#undef CPP_THROW_NEW

/* Define if a dyanmic_cast to void* gives the most derived object */
#undef HAVE_CPP_DYNAMIC_CAST_TO_VOID_PTR

/* Define to a string describing the XPCOM ABI in use */
#undef TARGET_XPCOM_ABI

#endif /* _XPCOM_CONFIG_H_ */