浏览代码

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();