From 356a87d1523aa198a8398974c3998361fd35d658 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Wed, 10 Aug 2011 22:17:31 +0100 Subject: [PATCH] Hide warnings in system headers On Linux this removes the follwoing annoying message: /usr/include/stdio.h:80:24: error: redefinition of typedef 'va_list' is invalid in C Signed-off-by: Tobias Grosser Signed-off-by: Sven Verdoolaege --- pet.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/pet.cc b/pet.cc index 4b0e3a7..d19a775 100644 --- a/pet.cc +++ b/pet.cc @@ -442,6 +442,7 @@ struct pet_scop *pet_scop_extract_from_C_source(isl_ctx *ctx, llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); DiagnosticOptions DO; Diagnostic Diags(DiagID, new MyDiagnosticPrinter(DO)); + Diags.setSuppressSystemWarnings(true); TargetOptions TO; TO.Triple = llvm::sys::getHostTriple(); TargetInfo *target = TargetInfo::CreateTargetInfo(Diags, TO); -- 2.11.4.GIT