Clang warnt nicht vor nicht initialisierter StapelvariableC++

Programme in C++. Entwicklerforum
Guest
 Clang warnt nicht vor nicht initialisierter Stapelvariable

Post by Guest »

hatte einen Fehler in diesem Code: < /p>

Code: Select all

bool x;

for(const auto a : b)
{
x = x && a.b;
}
< /code>
x
hätte in true initialisiert haben. Wir haben die offensichtlichen Flaggen: < /p>
-Wall \
-pedantic \
-Werror=uninitialized \
< /code>
Is there another Clang warning that would catch this and other uninitialized variables?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post