[libFuzzer] Remove extra semicolons
Summary:
Remove extra semicolons so that libFuzzer can compile with
-Werror -Wextra-semi
Reviewers: Dor1s, morehouse, thakis
Reviewed By: Dor1s, morehouse
Subscribers: jdoerfert, #sanitizers, llvm-commits
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D58674
llvm-svn: 354902
GitOrigin-RevId: 7821f892bfd64b98b1397bd71582b4b4f5574e37
diff --git a/FuzzerCorpus.h b/FuzzerCorpus.h
index 416b3b5..23a9a89 100644
--- a/FuzzerCorpus.h
+++ b/FuzzerCorpus.h
@@ -169,7 +169,7 @@
InputInfo &II = *Inputs[ChooseUnitIdxToMutate(Rand)];
assert(!II.U.empty());
return II;
- };
+ }
// Returns an index of random unit from the corpus to mutate.
size_t ChooseUnitIdxToMutate(Random &Rand) {
diff --git a/FuzzerExtFunctionsWindows.cpp b/FuzzerExtFunctionsWindows.cpp
index 907ecb4..55efe8f 100644
--- a/FuzzerExtFunctionsWindows.cpp
+++ b/FuzzerExtFunctionsWindows.cpp
@@ -49,7 +49,7 @@
Printf("ERROR: Function \"%s\" not defined.\n", #NAME); \
exit(1); \
} \
- EXTERNAL_FUNC(NAME, NAME##Def) RETURN_TYPE NAME FUNC_SIG;
+ EXTERNAL_FUNC(NAME, NAME##Def) RETURN_TYPE NAME FUNC_SIG
#include "FuzzerExtFunctions.def"
diff --git a/FuzzerUtilWindows.cpp b/FuzzerUtilWindows.cpp
index 75b43f7..074e1eb 100644
--- a/FuzzerUtilWindows.cpp
+++ b/FuzzerUtilWindows.cpp
@@ -85,11 +85,11 @@
class TimerQ {
HANDLE TimerQueue;
public:
- TimerQ() : TimerQueue(NULL) {};
+ TimerQ() : TimerQueue(NULL) {}
~TimerQ() {
if (TimerQueue)
DeleteTimerQueueEx(TimerQueue, NULL);
- };
+ }
void SetTimer(int Seconds) {
if (!TimerQueue) {
TimerQueue = CreateTimerQueue();
@@ -104,7 +104,7 @@
Printf("libFuzzer: CreateTimerQueueTimer failed.\n");
exit(1);
}
- };
+ }
};
static TimerQ Timer;