suppressing warnings in boost header files

U

usenet

Is there any way to selectively suppress compiler warnings from
designated header files (Ex: Boost header files) using gcc-3.3.1 on
Linux PC?
We tried using -Wno-system-headers option but it did not seem to solve
the problem.
Is there any way to designate system header files other than using
<>?

Thanks,
Bala
 
V

Victor Bazarov

Is there any way to selectively suppress compiler warnings from
designated header files (Ex: Boost header files) using gcc-3.3.1 on
Linux PC?

You cross-posted too wildly. The C++ answer: no there is no way in
the language. You correclty asked in the newsgroup for g++, though.
Look for answers there. If a way exists, it would be implementation-
specific.
We tried using -Wno-system-headers option but it did not seem to solve
the problem.
Is there any way to designate system header files other than using
<>?

The headers are not necessarily files. Standard headers all have
the angle brackets. If there is a way to do something about the
files that contain headers (in line with "designating" them), that
would be implementation-specific.

V
 
S

santosh

Is there any way to selectively suppress compiler warnings from
designated header files (Ex: Boost header files) using gcc-3.3.1 on
Linux PC?
We tried using -Wno-system-headers option but it did not seem to solve
the problem.
Is there any way to designate system header files other than using
<>?

You should ask in <since Boost header files are C++.
Maybe also a gcc or Boost mailing list.
 
K

Keith Thompson

Is there any way to selectively suppress compiler warnings from
designated header files (Ex: Boost header files) using gcc-3.3.1 on
Linux PC?
We tried using -Wno-system-headers option but it did not seem to solve
the problem.

This is a question about gcc, not about either C or C++. Followups
redirected. (I dropped comp.sources.d as well.)
Is there any way to designate system header files other than using
<>?

You can usually use either
#include <header.h>
or
#include "header.h"

They differ in the way that the preprocessor searches for the file.
Unless you're intentionally replacing system headers (and if you do
that, you're on your own), you should use <>.

Why do you want to use something other than <>? What problem are you
trying to solve?
 
B

BobR

Keith Thompson said:
This is a question about gcc, not about either C or C++. Followups
redirected. (I dropped comp.sources.d as well.)


You can usually use either
#include <header.h>
or
#include "header.h"

They differ in the way that the preprocessor searches for the file.
Unless you're intentionally replacing system headers (and if you do
that, you're on your own), you should use <>.

Why do you want to use something other than <>? What problem are you
trying to solve?

Hmm, just the opposite of my logic.

<name> == system
"name.h" == user
 
D

Default User

BobR said:
Hmm, just the opposite of my logic.

<name> == system
"name.h" == user

That's what he's saying. If you want your own stdio.h, put it in a
directory that will be searched via "" inclusion. The way that searches
are performed is implementation-defined, of course, but usually it will
search the local directory and directories that are specified as
compiler options.




Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top