[PATCH] D19831: [scan-build] fix dead store warnings emitted on clang code base

Apelete Seketeli via cfe-commits cfe-commits at lists.llvm.org
Tue May 3 12:05:26 PDT 2016


apelete added inline comments.

================
Comment at: tools/c-index-test/c-index-test.c:1440
@@ -1440,3 +1439,3 @@
         Record = Parent;
         Parent = clang_getCursorSemanticParent(Record);
         RecordIsAnonymous = clang_Cursor_isAnonymous(Record);
----------------
This line now causes a new "uninitialized argument value" warning because Parent variable isn't initialized anymore and Record variable is being passed here without being initialized either consequently.

Will fix in next revision.


http://reviews.llvm.org/D19831





More information about the cfe-commits mailing list