|
00001 /* ///////////////////////////////////////////////////////////////////////// 00002 * File: xtests/test/util/compiler_warnings_suppression.first_include.h 00003 * 00004 * Purpose: #include file to go at the start of a test file's #include 00005 * list. 00006 * 00007 * Created: 20th February 2008 00008 * Updated: 8th March 2008 00009 * 00010 * Author: Matthew Wilson 00011 * 00012 * Home: http://www.xtests.org/ 00013 * 00014 * Copyright: Matthew Wilson and Synesis Software Pty Ltd, 2008. 00015 * 00016 * Redistribution and use in source and binary forms, with or without 00017 * modification, are permitted provided that the following conditions are 00018 * met: 00019 * 00020 * - Redistributions of source code must retain the above copyright notice, 00021 * this list of conditions and the following disclaimer. 00022 * - Redistributions in binary form must reproduce the above copyright 00023 * notice, this list of conditions and the following disclaimer in the 00024 * documentation and/or other materials provided with the distribution. 00025 * - Neither the names of Matthew Wilson and Synesis Software nor the names 00026 * of any contributors may be used to endorse or promote products derived 00027 * from this software without specific prior written permission. 00028 * 00029 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 00030 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 00031 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00032 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 00033 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00034 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00035 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00036 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00037 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00038 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00039 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00040 * 00041 * ////////////////////////////////////////////////////////////////////// */ 00042 00043 00050 #ifndef XTESTS_INCL_XTESTS_TEST_UTIL_H_COMPILER_WARNINGS_SUPPRESSION_FIRST_INCLUDE 00051 #define XTESTS_INCL_XTESTS_TEST_UTIL_H_COMPILER_WARNINGS_SUPPRESSION_FIRST_INCLUDE 00052 00053 /* ///////////////////////////////////////////////////////////////////////// 00054 * Includes 00055 */ 00056 00057 #ifndef STLSOFT_INCL_STLSOFT_H_STLSOFT 00058 # include <stlsoft/stlsoft.h> /* This will be reported not found if STLSoft version < 1.9 */ 00059 #endif /* !STLSOFT_INCL_STLSOFT_H_STLSOFT */ 00060 00061 /* ///////////////////////////////////////////////////////////////////////// 00062 * Warning suppressions 00063 */ 00064 00065 #ifdef STLSOFT_CF_EXCEPTION_SUPPORT 00066 # if defined(STLSOFT_COMPILER_IS_MSVC) 00067 # pragma warning(disable : 4702) 00068 # endif /* compiler */ 00069 #else /* ? STLSOFT_CF_EXCEPTION_SUPPORT */ 00070 # if defined(STLSOFT_COMPILER_IS_MSVC) 00071 # pragma warning(disable : 4530) 00072 # endif /* compiler */ 00073 #endif /* STLSOFT_CF_EXCEPTION_SUPPORT */ 00074 00075 #if defined(STLSOFT_COMPILER_IS_MSVC) 00076 # if _MSC_VER >= 1400 00077 # pragma warning(disable : 4996) 00078 # endif /* _MSC_VER >= 1400 */ 00079 #endif /* compiler */ 00080 00081 /* ////////////////////////////////////////////////////////////////////// */ 00082 00083 #endif /* !XTESTS_INCL_XTESTS_TEST_UTIL_H_COMPILER_WARNINGS_SUPPRESSION_FIRST_INCLUDE */ 00084 00085 /* ////////////////////////////////////////////////////////////////////// */ 00086
|
|
xTests Library documentation © Matthew Wilson and Synesis Software Pty Ltd, 1999-2009 |