C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Aufruf von statischen Funktionen
Goto page Previous  1, 2
 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (German)
View previous topic :: View next topic  
Author Message
Markus Schaaf
Guest





PostPosted: Thu May 03, 2007 2:59 am    Post subject: Re: Aufruf von statischen Funktionen Reply with quote



Olaf Krzikalla schrieb:

Quote:
quote
For a new project, it may be best to use /W4 in all compilations. This
will ensure the fewest possible hard-to-find code defects.
/quote

Das soll nun einer verstehen...

Das ist die lint-Philosophie: Alle Warnungen einschalten, und
falls sie irgendwo nicht gerechtfertigt sein sollten, explizit
deaktivieren: `#pragma warning( disable: ... )` -- So bekommst Du
sie zumindest einmal zu sehen und kannst darüber meditieren.
Back to top
Olaf Krzikalla
Guest





PostPosted: Thu May 03, 2007 4:55 pm    Post subject: Re: Aufruf von statischen Funktionen Reply with quote



Hi,

Markus Schaaf wrote:
Quote:
Das ist die lint-Philosophie: Alle Warnungen einschalten, und
falls sie irgendwo nicht gerechtfertigt sein sollten, explizit
deaktivieren: `#pragma warning( disable: ... )` -- So bekommst Du
sie zumindest einmal zu sehen und kannst darüber meditieren.
Schon klar. Mir ging es nur darum, dass sich MS hier von einem Satz auf

den nächsten widerspricht: erst sagen sie, W4 'is not recommended as
your usual warning level' und gleich danach empfehlen sie W4 für alle
neuen Projekte. Das ist es, was zumindest ich nicht verstehe...

MfG
Olaf Krzikalla
Back to top
Rolf Magnus
Guest





PostPosted: Thu May 03, 2007 11:31 pm    Post subject: Re: Aufruf von statischen Funktionen Reply with quote



Olaf Krzikalla wrote:

Quote:
Hi,

Markus Schaaf wrote:
Das ist die lint-Philosophie: Alle Warnungen einschalten, und
falls sie irgendwo nicht gerechtfertigt sein sollten, explizit
deaktivieren: `#pragma warning( disable: ... )` -- So bekommst Du
sie zumindest einmal zu sehen und kannst darüber meditieren.
Schon klar. Mir ging es nur darum, dass sich MS hier von einem Satz auf
den nächsten widerspricht: erst sagen sie, W4 'is not recommended as
your usual warning level' und gleich danach empfehlen sie W4 für alle
neuen Projekte. Das ist es, was zumindest ich nicht verstehe...

Außerdem heißt es anfangs "can be safely ignored", und weiter unten
dann "ensure the fewest possible hard-to-find code defects".

Also kann man die Warnungen bedenkenlos ignorieren, aber wenn man das tut,
hat man halt schwer zu findende Bugs.
Back to top
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (German) All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
 


Powered by phpBB © 2001, 2006 phpBB Group