LINT.H 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. /*
  2. ** Command & Conquer Red Alert(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /* $Header: /CounterStrike/LINT.H 1 3/03/97 10:25a Joe_bostic $ */
  19. /***********************************************************************************************
  20. *** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
  21. ***********************************************************************************************
  22. * *
  23. * Project Name : Command & Conquer *
  24. * *
  25. * File Name : LINT.H *
  26. * *
  27. * Programmer : Joe L. Bostic *
  28. * *
  29. * Start Date : 03/28/96 *
  30. * *
  31. * Last Update : March 28, 1996 [JLB] *
  32. * *
  33. *---------------------------------------------------------------------------------------------*
  34. * Functions: *
  35. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  36. // overloading data member (e.g., IsToRedraw)
  37. //lint -e1516
  38. // function distinguishing error (actually not an error when conversion operators are used).
  39. //lint -e1053
  40. /*
  41. ** The current version of Lint doesn't know how to deal with conversion operators. It
  42. ** erroneously generates this error message as a result. Unfortunately, we have to throw
  43. ** out the baby with the bathwater on this one.
  44. */
  45. //lint -e58 -e56
  46. /*
  47. ** Hiding a non virtual member function is generally ok.
  48. */
  49. //lint -e1511
  50. /*
  51. ** The warning about not initializing a member during construction is
  52. ** valid. However, C&C takes advantage of this by using the in place
  53. ** new operator during the load game process. Disable the warning, but
  54. ** grudgingly.
  55. */
  56. //lint -e1401
  57. /*
  58. ** Disable warning about non virtual base class destructor for these objects.
  59. */
  60. //lint -esym(1509,GraphicBufferClass,GraphicViewPortClass,BufferClass,VideoViewPortClass,GetCDClass)
  61. //lint -esym(1509,BasicTimerClass,FlyClass,FuseClass,StageClass,FlasherClass,CargoClass,DoorClass)
  62. //lint -esym(1509,AbstractTypeClass)
  63. /*
  64. ** The "unusual cast" warning is the result of derived casting. This is
  65. ** because there is no "dynamic_cast<>" implemented in Watcom (version 10.5).
  66. */
  67. //lint -e740 -e571
  68. /*
  69. ** "function not previously declared inline" is probably not worth noting.
  70. */
  71. //lint -e1727
  72. /*
  73. ** Allow sub-integer loss of precision. This will allow assigning ints to
  74. ** chars without warning.
  75. */
  76. //lint -e734
  77. /*
  78. ** Shifting an integer left is always ok.
  79. */
  80. //lint -e701 -e703
  81. /*
  82. ** Allow repeated include files. The body of the include file should be
  83. ** coded to ensure that it is processed only once.
  84. */
  85. //lint -e537
  86. /*
  87. ** Implicitly converting an enum to an integer is almost always ok.
  88. */
  89. //lint -e641
  90. /*
  91. ** It is possible to have template functions for "++" and "--" that
  92. ** don't require one of the parameters to be a class object.
  93. */
  94. //lint -e1042
  95. /*
  96. ** Redundant declarations are ok. They are a bit harder to maintain,
  97. ** but they facilitate keeping modules less interdependant (include
  98. ** file wise).
  99. */
  100. //lint -e963 -e762 -e763
  101. /*
  102. ** Not having a default constructor is ok.
  103. */
  104. //lint -e1712
  105. /*
  106. ** Private constructors are ok. In fact, they are necessary if the
  107. ** class object must never be instantiated outside of the class
  108. ** itself.
  109. */
  110. //lint -e1704
  111. /*
  112. ** Ignoring the return value from a function is ok. It is very
  113. ** common for certain side-effect type functions.
  114. */
  115. //lint -e534
  116. /*
  117. ** Implicitly converting from a signed to an unsigned parameter (or
  118. ** visa versa) is ok.
  119. */
  120. //lint -e732 -e502 -e713 -e737 -eau
  121. /*
  122. ** Allow functions to overload and hide base functions. This is a
  123. ** technique of inheritance that handles function parameter changes.
  124. */
  125. //lint -e1411
  126. /*
  127. ** If a switch statement doesn't have a case for every value (enums)
  128. ** but it does have a "default" case, then don't warn about it.
  129. */
  130. //lint -e788
  131. /*
  132. ** If bitwize arithmetic is performed on compatible enumeration types,
  133. ** then don't complain. Many enums are used in this fashion.
  134. */
  135. //lint -e655 -e656
  136. /*
  137. ** If a data member is not explicitly initialized in the initializer
  138. ** list, this is ok.
  139. */
  140. //lint -e1542
  141. /*
  142. ** Calling "new" when not part of an assignment operation can be valid. This
  143. ** is true if the "new" operator has been overloaded and the class keeps
  144. ** track of itself.
  145. */
  146. //lint -e522
  147. /*
  148. ** A class that is zero bytes long is ok. This is how method classes
  149. ** usually work.
  150. */
  151. //lint -e1501
  152. /*
  153. ** Boolean passed to function is ok.
  154. */
  155. //lint -e730
  156. /*
  157. ** Signed/unsigned mix with relational... ignore for now.
  158. */
  159. //lint -e574