Author: lebedevri Date: Thu Oct 12 13:27:41 2017 New Revision: 315615 URL: http://llvm.org/viewvc/llvm-project?rev=315615&view=rev Log: [Analysis] Silence -Wtautological-constant-compare in two tests
Yes, did not check that. Need to do better :( I do not believe it makes sense to do expect that warning here. Modified: cfe/trunk/test/Analysis/conversion.c cfe/trunk/test/Analysis/null-deref-ps.c Modified: cfe/trunk/test/Analysis/conversion.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/conversion.c?rev=315615&r1=315614&r2=315615&view=diff ============================================================================== --- cfe/trunk/test/Analysis/conversion.c (original) +++ cfe/trunk/test/Analysis/conversion.c Thu Oct 12 13:27:41 2017 @@ -1,4 +1,4 @@ -// RUN: %clang_analyze_cc1 -Wno-conversion -analyzer-checker=core,alpha.core.Conversion -verify %s +// RUN: %clang_analyze_cc1 -Wno-conversion -Wno-tautological-constant-compare -analyzer-checker=core,alpha.core.Conversion -verify %s unsigned char U8; signed char S8; Modified: cfe/trunk/test/Analysis/null-deref-ps.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/null-deref-ps.c?rev=315615&r1=315614&r2=315615&view=diff ============================================================================== --- cfe/trunk/test/Analysis/null-deref-ps.c (original) +++ cfe/trunk/test/Analysis/null-deref-ps.c Thu Oct 12 13:27:41 2017 @@ -1,5 +1,5 @@ -// RUN: %clang_analyze_cc1 -triple i386-apple-darwin10 -analyzer-checker=core,deadcode,alpha.core -std=gnu99 -analyzer-store=region -analyzer-purge=none -verify %s -Wno-error=return-type -// RUN: %clang_analyze_cc1 -triple i386-apple-darwin10 -analyzer-checker=core,deadcode,alpha.core -std=gnu99 -analyzer-store=region -verify %s -Wno-error=return-type +// RUN: %clang_analyze_cc1 -triple i386-apple-darwin10 -Wno-tautological-constant-compare -analyzer-checker=core,deadcode,alpha.core -std=gnu99 -analyzer-store=region -analyzer-purge=none -verify %s -Wno-error=return-type +// RUN: %clang_analyze_cc1 -triple i386-apple-darwin10 -Wno-tautological-constant-compare -analyzer-checker=core,deadcode,alpha.core -std=gnu99 -analyzer-store=region -verify %s -Wno-error=return-type typedef unsigned uintptr_t; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits