فهرست منبع

Clang incorrectly warns about some variables being uninitialized, while the classic compiler warns that the value is never used (2nd after 8073dbef)

Source commit: 91ee3a1cf121e1a00e0d8d2a6c01a8555c2aaab1
Martin Prikryl 3 ماه پیش
والد
کامیت
92dd7ed6c1
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      source/windows/WinConfiguration.cpp

+ 1 - 1
source/windows/WinConfiguration.cpp

@@ -3254,7 +3254,7 @@ void __fastcall TCustomCommandType::LoadExtension(TStrings * Lines, const Unicod
 
     if (!Continuation)
     {
-      int P = 0; // shut up
+      int P CLANG_INITIALIZE(0); // shut up
       if (!ExtensionLine.IsEmpty() && (ExtensionLine[1] == ExtensionMark) && ((P = Pos(L" ", ExtensionLine)) >= 2))
       {
         UnicodeString Key = ExtensionLine.SubString(2, P - 2).LowerCase();