1 INFO-VAX	Sat, 13 Mar 2004	Volume 2004 : Issue 144       Contents:0 Re: for OpenVMS C-programmers: #pragma unused ?? Re: Toys R Us and VMS ?   F ----------------------------------------------------------------------  % Date: Sat, 13 Mar 2004 10:05:28 -0500 - From: "John E. Malmberg" <wb8tyw@qsl.network> 9 Subject: Re: for OpenVMS C-programmers: #pragma unused ?? 1 Message-ID: <x8OdnWJpHdikvs7d4p2dnA@adelphia.com>    Dirk Munk wrote:C > We are trying to do some open source projects on OpenVMS, and we  B > stumbled over the < #pragma unused > statements in some sources. >   K > The VMS C-compiler however does not know this pragma, en will produce an  H > error. Removing this pragma statement will also remove the error, and . > will not introduce other warnings or errors. > I > Is there a way to avoid the < #pragma unused > errors without the need   > to edit the sources ?   + #pragma is documented as compiler specific.   C Any code that uses #pragma that intends to be portable needs to be  1 wrapped in #ifdef __<compiler_name> conditionals.   * As to how to suppress your error messages:  G The preprocessor will do macro substitution, so if you can replace the  H token unused with something more acceptable to DEC/COMPAQ/HP C, you can  do that.  * Macros can be defined in the command line.  D The current C compiler (at least for Alpha/IA64) has a qualifier of F /FIRST_INCLUDE that allows you to specify a file with your overrides. B This was implemented to allow building of UNIX files with lots of * #define statements in their command lines.  L If your program has a "config.h" type include, you can put the macros there.  E Alternatively, you can suppress messages on a message specific basis  E with the DEC/COMPAQ/HP C specific pragmas.  Replace xxxxxxx with the   message tag in lower case.  
 #ifdef __DECC   #pragma message disable xxxxxxxx #endif   -John  wb8tyw@qsl.network Personal Opinion Only    ------------------------------  # Date: Sat, 13 Mar 2004 17:00:28 GMT  From: guppy@fish.org  Subject: Re: Toys R Us and VMS ?8 Message-ID: <1td6505orq67kphf0qlno2q2bqhcqua2m0@4ax.com>  @ As of a year or two ago, when HP/CPQ/DEC and BB terminated their? maintenance agreement for BB owned stores, each BB had an Alpha A workstation which was used as a server and an eight port terminal @ server which was fed by the PC's at the check-out stations.  TheB Alphas all ran VMS and were connected via satellite to HQ.  If theD Alpha was down, they had to do everything manually until it was backD up.   The only thing the manager of each store was required to do toE was to change the backup tape every day.  Everything else was handled   by the BB Help Desk via dial-up.  E The system worked fine, and I have no idea why they would have wanted > to change it, or if they had or have plans to do so.  When oneD considers that the cost of any single hardware or software change atE BB has to be multiplied by many thousands of locations, it would seem B unlikely that they would move to a new solution unless there was a compelling reason to do so.        ------------------------------   End of INFO-VAX 2004.144 ************************