VXIcompilerMsvc.h
上传用户:xqtpzdz
上传日期:2022-05-21
资源大小:1764k
文件大小:4k
源码类别:

xml/soap/webservice

开发平台:

Visual C++

  1. /****************License************************************************
  2.  * Vocalocity OpenVXI
  3.  * Copyright (C) 2004-2005 by Vocalocity, Inc. All Rights Reserved.
  4.  * This program is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU General Public License
  6.  * as published by the Free Software Foundation; either version 2
  7.  * of the License, or (at your option) any later version.
  8.  *  
  9.  * This program is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.  * GNU General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program; if not, write to the Free Software
  16.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  17.  * Vocalocity, the Vocalocity logo, and VocalOS are trademarks or 
  18.  * registered trademarks of Vocalocity, Inc. 
  19.  * OpenVXI is a trademark of Scansoft, Inc. and used under license 
  20.  * by Vocalocity.
  21.  ***********************************************************************/
  22. /************************************************************************
  23.  *
  24.  *
  25.  * Settings specific to the Microsoft Visual C++ compiler
  26.  *
  27.  ************************************************************************
  28.  */
  29. #if !defined(_MSC_VER)
  30. #error This file should not be included.
  31. #endif
  32. #if (_MSC_VER < 1200) 
  33. #error Visual C++ versions prior to 6.0 are not supported.
  34. #endif
  35. /* error if calling a function not prototyped */
  36. #pragma warning(1 : 4013 4071 4072)
  37. /* warning if empty statement at global scope */
  38. #pragma warning(3 : 4019)
  39. /* warning if two pointers in an expression point to different base types. */
  40. #pragma warning(3 : 4057)
  41. /* warning if enumerate not an explicit case inside a switch statement */
  42. #pragma warning(3 : 4061)
  43. /* warning if enumerate not a case inside a switch statement and there is no
  44.    default case */
  45. #pragma warning(3 : 4062)
  46. /* warning if comparing to string constant */
  47. #pragma warning(3 : 4130)
  48. /* warning if const variable not initialized */
  49. #pragma warning(3 : 4132)
  50. /* warning if statement has no effect */
  51. #pragma warning(3 : 4705)
  52. /* warning if assignment within conditional expression */
  53. #pragma warning(3 : 4706)
  54. /* warning if comma inside array index */
  55. #pragma warning(3 : 4709)
  56. /* error if c++ style comments in c code */
  57. #pragma warning(error : 4001)
  58. /* error if too many arguments to a macro */
  59. #pragma warning(error : 4002)
  60. /* error if too few  arguments to a macro */
  61. #pragma warning(error : 4003)
  62. /* error if incorrect usage of "defined" operator */
  63. #pragma warning(error : 4004)
  64. /* error if too many arguments to a function */
  65. #pragma warning(error : 4020)
  66. /* error if too few  arguments to a function */
  67. #pragma warning(error : 4021)
  68. /* error if a function's parameter list is declared non-empty but defined 
  69.    empty. */
  70. #pragma warning(error : 4026)
  71. /* error if a function's parameter list is declared empty but declared/called 
  72.    with a non-empty list. */
  73. #pragma warning(error : 4027 4087)
  74. /* error if a function parameter's type is incorrect */
  75. #pragma warning(error : 4028)
  76. /* error if function's parameter types differ between declaration and
  77.    definition */
  78. #pragma warning(error : 4029)
  79. /* error if function declared twice with different parameter lists */
  80. #pragma warning(error : 4030 4031)
  81. /* error if function has return type but no value returned */
  82. #pragma warning(error : 4033)
  83. /* error if array bounds overflow in array initializer */
  84. #pragma warning(error : 4045)
  85. /* error if function declared void but trying to return a value. */
  86. #pragma warning(error : 4098)
  87. /* error if assigning pointers to functions with mismatched parameter lists */
  88. #pragma warning(error : 4113)
  89. /* error if floating point function doesn't return value */
  90. #pragma warning(error : 4137)
  91. /* error if using nameless struct/union */
  92. #pragma warning(error : 4201)
  93. #ifdef NDEBUG
  94. // disable those silly MSVC warnings about all the values in an enum
  95. // not being used in a switch statement.
  96. #pragma warning(disable : 4061)
  97. #pragma warning(disable : 4062)
  98. #endif
  99. #ifdef __cplusplus
  100. /* disable warnings about long symbol names */
  101. #pragma warning(disable : 4786 4503)
  102. #endif