OSDN Git Service

llvm-strings: explicitly include cctype
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 11 Nov 2016 04:00:59 +0000 (04:00 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 11 Nov 2016 04:00:59 +0000 (04:00 +0000)
Include the cctype header to try to fix windows bots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286558 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-strings/llvm-strings.cpp

index daabcd6..ccad061 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Program.h"
 #include "llvm/Support/Signals.h"
+#include <cctype>
 #include <string>
 
 using namespace llvm;
@@ -74,7 +75,7 @@ class Strings {
         }
       }
     }
-    static_cast<bool>(E);
+    (void)static_cast<bool>(E);
   }
 
 public: