473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Turning off warnings for files not included in the project

Hi,
For my project I had set the VC++ compiler flag at its highest level (
/W4 ). While it is nice to see the warnings for my code, the project
continues to list the warnings in the header files , that are not part of my
project ( apparently, they are the third party libraries I use in my
application ). I would not like to be bothered about the warnings in those
implementations / files not part of my project. What option should I choose
to make this happen - to issue warnings only to those files that are part of
my project and not the files that I include ?
Nov 17 '05 #1
1 1370
Hi,

#pragma warning(disable: your warning list)
#include"3rdPartyLibrary.h"
#pragma warning(default: your warning list)

Note that some warnings cannot be turned off with this guard because they
are emmited after last line of your code, e.g. C4710 function not inlined.

Jan

"Karthik" <Ka*****@discussions.microsoft.com> wrote in message
news:82**********************************@microsof t.com...
Hi,
For my project I had set the VC++ compiler flag at its highest level (
/W4 ). While it is nice to see the warnings for my code, the project
continues to list the warnings in the header files , that are not part of my project ( apparently, they are the third party libraries I use in my
application ). I would not like to be bothered about the warnings in those implementations / files not part of my project. What option should I choose to make this happen - to issue warnings only to those files that are part of my project and not the files that I include ?


Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: John | last post by:
Hello. I am a newbie to PHP. I am over halfway through my first book that I'm learning with and have just created login pages etc. I just wondered, if I am running php/mysql/apache locally,...
12
by: Florian | last post by:
Hi, I'm hoping that someone can point me into the right direction here. I'm trying to gain a bit of a better understanding on how the preprocessor works - something that seems like a simple...
18
by: John Smith | last post by:
Hi all What does the group think of the practise of including one header file from inside another? I have some legacy code where this has been done, and it creates a dependency on a module...
4
by: Edward Diener | last post by:
If I set an Xml documentation file in Configuration Properties | Build, a warning is put out for every non-private element in a public class in every file of my assembly when there is no Xml...
2
by: Dan Baker | last post by:
I'm relatively new to the .cs world. I would like to have some "shared" .cs files, which several solutions can use. I don't want to place these in a ..dll, I simply want them included into...
0
by: Karthik | last post by:
Hi, For my project I had set the VC++ compiler flag at its highest level ( /W4 ). While it is nice to see the warnings for my code, the project continues to list the warnings in the header files...
1
by: stromhau | last post by:
Ok, i have a file with main and an additional .cpp file i include in the main file but i get a lot of strange warnings when including. Both files compile just great separately. It seems that it have...
1
by: Claire | last post by:
Visual Studio 2005 In my setup project, I've needed to include external setup files required to install a manufacturers smart card reader drivers. This collection of files includes those needed...
10
by: Phil | last post by:
VB2005 Express. I am developing a solution that involves a windows forms application and a number of class library projects (DLLs). Some of the DLLs require extra data files or third party dlls. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.