CnC_Remastered_Collection

Command and Conquer: Red Alert
Log | Files | Refs | README | LICENSE

WATCOM.H (3845B)


      1 //
      2 // Copyright 2020 Electronic Arts Inc.
      3 //
      4 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free 
      5 // software: you can redistribute it and/or modify it under the terms of 
      6 // the GNU General Public License as published by the Free Software Foundation, 
      7 // either version 3 of the License, or (at your option) any later version.
      8 
      9 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed 
     10 // in the hope that it will be useful, but with permitted additional restrictions 
     11 // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT 
     12 // distributed with this program. You should have received a copy of the 
     13 // GNU General Public License along with permitted additional restrictions 
     14 // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
     15 
     16 /* $Header:   F:\projects\c&c\vcs\code\watcom.h_v   2.13   16 Oct 1995 16:45:58   JOE_BOSTIC  $ */
     17 /*********************************************************************************************** 
     18  ***              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               *** 
     19  *********************************************************************************************** 
     20  *                                                                                             * 
     21  *                 Project Name : Command & Conquer                                            * 
     22  *                                                                                             * 
     23  *                    File Name : WATCOM.H                                                     * 
     24  *                                                                                             * 
     25  *                   Programmer : Joe L. Bostic                                                * 
     26  *                                                                                             * 
     27  *                   Start Date : 03/12/95                                                     * 
     28  *                                                                                             * 
     29  *                  Last Update : March 12, 1995 [JLB]                                         * 
     30  *                                                                                             * 
     31  *---------------------------------------------------------------------------------------------* 
     32  * Functions:                                                                                  * 
     33  * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
     34 
     35 #ifndef WATCOM_H
     36 #define WATCOM_H
     37 #if (0)
     38 // Turn all warnings into errors.
     39 #pragma warning * 0
     40 
     41 // Disables warning when "sizeof" is used on an object with virtual functions.
     42 #pragma warning 549 9
     43 
     44 // Disable the "Integral value may be truncated during assignment or initialization".
     45 #pragma warning 389 9
     46 
     47 // Allow constructing a temporary to be used as a parameter.
     48 #pragma warning 604 9
     49 
     50 // Disable the construct resolved as an expression warning.
     51 #pragma warning 595 9
     52 
     53 // Disable the strange "construct resolved as a declaration/type" warning.
     54 #pragma warning 594 9
     55 
     56 // Disable the "pre-compiled header file cannot be used" warning.
     57 #pragma warning 698 9
     58 
     59 // Disable the "temporary object used to initialize a non-constant reference" warning.
     60 #pragma warning 665 9
     61 
     62 // Disable the "pointer or reference truncated by cast. Cast is supposed to REMOVE warnings, not create them.
     63 #pragma warning 579 9
     64 
     65 // Disable the warning about moving empty constructors/destructors to the class declaration.
     66 #pragma warning 657 9
     67 
     68 // Turns off unreferenced function parameter warning.
     69 //#pragma off(unreferenced)
     70 
     71 // Turns off "expression with side effect in sizeof()". This is needed if memchecker is used.
     72 #pragma warning 472 9
     73 #endif
     74 #endif