#pragma warnings are "invisible"

2001-08-30 Thread Petter Reinholdtsen

>Submitter-Id:  net
>Originator:Petter Reinholdtsen
>Organization:  Hungry Programmers
>Confidential:  no
>Synopsis:  #pragma warnings are "invisible"
>Severity:  serious
>Priority:  low
>Category:  
>Class: change-request
>Release:   3.0.2 20010825 (Debian prerelease) (Debian testing/unstable)
>Environment:
System: Linux zoot 2.4.6-686-smp #1 SMP Thu Jul 5 22:06:27 EST 2001 i686 
unknownArchitecture: i686
 

host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: ../src/configure -v 
--enable-languages=c,c++,java,f77,proto,objc --prefix=/usr 
--infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as 
--with-gnu-ld --with-system-zlib --enable-long-long --enable-nls 
--without-included-gettext --disable-checking --enable-threads=posix 
--enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
>Description:

We are compiling the same program using GCC, Compaq C++, SUN
Forte and M$ Visual C++, and want to be able to insert
'warnings' into the code in a common way.  At the moment all
'common' code uses '#pragma WARNING("warning"), but these
messages are not displayed when using gcc.  The GCC extention
'#warning' is illegal on all the other compilers.  Would it be
possible to change gcc to display the content of an unknown
#pragma.  At the moment the following file (compiled with
-Wall)

#pragma WARNING "This is a pragma warning"
#pragma WARNING("This is a pragma warning ()")
#warning "This is a GNU C warning"

produces the following messages:

 pragmawarn.c:1: warning: ignoring #pragma WARNING
 pragmawarn.c:2: warning: ignoring #pragma WARNING
 pragmawarn.c:3:2: warning: #warning "This is a GNU C warning"

Could this be changed to display the content of the pragma,
for instance like this:

 pragmawarn.c:1: warning: ignoring #pragma WARNING "This is a 
pragma warning"
 pragmawarn.c:2: warning: ignoring #pragma WARNING("This is a 
pragma warning ()")
 pragmawarn.c:3:2: warning: #warning "This is a GNU C warning"

This would make GCC much more useful for our purpose.

The Compaq C++ handle the warnings like this, and it works
just fine for us. :-)

>How-To-Repeat:

>Fix:





Re: #pragma warnings are "invisible"

2001-08-30 Thread Gordon Sadler
You might take a look at -Wunknown-pragmas.
I use it for something similar with SCO <-> Linux.


>   Could this be changed to display the content of the pragma,
>   for instance like this:
> 
>pragmawarn.c:1: warning: ignoring #pragma WARNING "This is a 
> pragma warning"
>pragmawarn.c:2: warning: ignoring #pragma WARNING("This is a 
> pragma warning ()")
>pragmawarn.c:3:2: warning: #warning "This is a GNU C warning"
> 
>   This would make GCC much more useful for our purpose.
> 
>   The Compaq C++ handle the warnings like this, and it works
>   just fine for us. :-)

-- 
Gordon Sadler




Request For Information

2001-08-30 Thread josh . winters

Hello,

Could you please direct this request to the proper party or department? We 
would like to get some additional information about your business in an effort 
to explore the ways that we might be able to work together. If possible, we 
would like to receive your media package. If you have an interest, please 
respond to the address below, or visit our web site.

Please send to:

If by e-mail:
[EMAIL PROTECTED]

If by mail:
WebStream Internet Solutions
Outsourcing Department
2200 W.Commercial Blvd. Suite 204
Ft. Lauderdale, FL 33309 USA

Thank you very much.

Josh Winters
[EMAIL PROTECTED]
http://webstream.net
Design * Programming * Virtual and Dedicated Server Hosting Since 1997