Is there a bug in the MS C++ compiler causing warnings to not be disabled?

  • Thread starter Thread starter Just an Asterisk
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around issues with the Microsoft C++ compiler (VC6++) regarding the inability to disable certain warnings during compilation. Participants explore potential bugs in the compiler, code quality, and the effectiveness of using warning directives.

Discussion Character

  • Debate/contested
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant reports persistent warnings during compilation despite attempts to disable them using "#pragma warning(disable: 1234)", questioning if this indicates a bug in the compiler.
  • Another participant suggests that fixing the underlying code would be a better approach than suppressing warnings.
  • A different participant expresses confidence in their code's functionality, asserting that it produces output despite the warnings.
  • One participant requests to see the specific warning message and the related code to provide assistance in resolving the issue.
  • Another participant advises compiling in release mode instead of debug mode to potentially avoid the warnings.
  • A participant shares a link to a Microsoft support page, possibly related to the issue at hand.

Areas of Agreement / Disagreement

Participants do not reach a consensus. While some argue for fixing the code, others maintain that the warnings do not indicate a problem with their functioning program. Disagreement exists regarding the necessity of addressing the warnings versus accepting them.

Contextual Notes

Participants express differing views on the importance of addressing compiler warnings, with some emphasizing the need for code quality and others dismissing the warnings as non-critical.

Just an Asterisk
Messages
7
Reaction score
0
I have a program which everytime I have it compile on VC6++, there are a bunch of warnings but without any errors emitted. I have tried to disable all those warnings but none come to get effected at all by, for instance, "#pragma warning(disable: 1234)".
Is this a bug in MS C++ compiler version ? How can I make things work fine again ?

Thanks so very much for all of your help, --lol--
 
Computer science news on Phys.org
It'd be better just to fix your code.

- Warren
 
lol

:)

- aychamo
 
chroot said:
It'd be better just to fix your code.

- Warren
No, i don't think there is anything wrong in my code, my program works fine, there is also output after I execute it...
Thanks for your answer anyway

Anyone else who can help me ?
 
Well, it obviously functions, but it's obviously not well-written code. Show us the offending line of code, and the warning it produces, and we'll help you solve it.

- Warren
 
aychamo said:
lol

:)

- aychamo
If you could draw a monkey face as your avatar, people and I would pay much attention to the nonsense you are doing and writing about..
By the way, I would like chroot get rid of this thread of mine and his out of my thread if possible because nothing about what I am doing but a meaningless smile and an I-don't-like-signature from the language I don't know...Sorry aychamo...
 
Okay, thanks chroot for your help..
Here is the warning I have from my compiler
Code:
'std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >
 >::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >' : identifier was truncated to '255' characters in the debug information
 
Just an Asterisk,

I'm making an honest attempt to help you. Warnings are produced for a reason. Using a directive to disable the warning is not a good solution. You should just fix the code so it no longer produces the warning. Show it to me, and I will help you fix it.

- Warren
 
Just an Asterisk,

Just compile your program in release mode instead of debug mode -- unless you need to use the source-level debugger.

- Warren
 
  • #10
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q167355

- Warren
 
Last edited by a moderator:
  • #11
Just an Asterisk said:
No, i don't think there is anything wrong in my code, my program works fine, there is also output after I execute it...

So, planning on working at Microsoft are we?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
6
Views
4K
Replies
5
Views
1K
  • · Replies 44 ·
2
Replies
44
Views
6K
  • · Replies 25 ·
Replies
25
Views
5K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K