Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / November 2005

Tip: Looking for answers? Try searching our database.

VS 2005 - turn off switch statement warning

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Thielen - 15 Sep 2005 01:32 GMT
Hi;

How do I turn off the warning:
    Switch statement contains no 'default'

Signature

thanks - dave

"Gary Chang[MSFT]" - 15 Sep 2005 10:23 GMT
Hi Dave,

There is 2 ways to disable a warning in VS2005:

1. Use the pragma directive "#pragma disable warning ####" in VC or C#
project with the target warning number.

2.Specify the target warning numbers in the project property
pages\Build\Errors and Warnings\Suppress Warnings\ entry.

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
David Thielen - 15 Sep 2005 14:22 GMT
I went to the project properties but could not find build\errors or
warnings\supress warnings. How do I get to those?

Signature

thanks - dave

> Hi Dave,
>
[quoted text clipped - 19 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
"Gary Chang[MSFT]" - 16 Sep 2005 02:56 GMT
Hi Dave,

>I went to the project properties but could not find build\errors
>or warnings\supress warnings. How do I get to those?

When you have project properties' sheet(ATL+F7) in the code editor window,
you can select the "Build" item in its left pane, the project properties'
sheet will switch to the "Build" configuration's page, the Errors and
Warnings\Suppress Warnings\ entry should be right there.

By the way, would you please tell me what's the type of your project?

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
David Thielen - 16 Sep 2005 04:21 GMT
Hello;

It is a jsl project.

When I press ALT-F7 I get a visual studio window switcher (sort of like a
task switcher). I select Properties and I get a window with the following on
the left: Application, Build, Build Events, Debug, Settings, Resources,
Reference Paths, and Signing.

I select the Build one. In it it has an edit box for "Supress warnings". I
put 1520 in that box and it worked.

I'm sorry I missed it before - I was expecting a list that I would check
items in. I've got it surpressed now.

Signature

thanks - dave

> Hi Dave,
>
[quoted text clipped - 21 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
"Gary Chang[MSFT]" - 16 Sep 2005 09:24 GMT
That's OK, Dave, I am glad to know you found it:)

Good Luck!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Steve_at_BF - 07 Nov 2005 14:51 GMT
I have a Web application.  When I go to property pages and select Build, I
see only the following: Start Action; Build solution action; Accessibility
validation
There is nothing about Errors and Warnings

Steve


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.