TIP: Click on subject to list as thread! ANSI
echo: muffin
to: Bo Simonsen
from: Wes Garland
date: 2003-06-29 10:55:58
subject: Squish process (boundari

BS> Yes, but as programmer you ignore warnings :) They 
 BS> should be gone in sometime.
 
No, no, no! As a programmer, you pay careful attention to all warnings, and
do whatever you can to eliminate them.
 
Unfortunately, on a project of this magnitude, that can be a lot of work.
The C++ code needs to be modified to compile warning-free without
-traditional or -fpermissive. The pragma warnings are easy --
 
Old:
#pragma off(unreferenced)
static char rcs_id[]="$Id: dos.c,v 1.1.1.1 2002/10/01 17:50:52 sdudley
Exp $";
#pragma on(unreferenced)
 
New:
#ifndef __GNUC__
#pragma off(unreferenced)
#endif
static char __attribute__((unused)) rcs_id[]="$Id: asyncnt.c,v 1.2 2003/06/04 2$
#ifndef __GNUC__
#pragma on(unreferenced)
#endif
 
It's wordy, but should be portable to all previously-supported platforms,
plus gcc. Oh, under non-gcc, we need to add
 
#define __attribute__(a)  
 
(that's a space after the right paren) somewhere; probably compiler.h.
 
Wes

--- Maximus/2 3.01
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
SEEN-BY: 633/267 270
@PATH: 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.