[PATCH] D58674: [libFuzzer] Remove extra semicolons
Jonathan Metzman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 26 07:25:29 PST 2019
metzman created this revision.
metzman added reviewers: Dor1s, morehouse, thakis.
Herald added subscribers: llvm-commits, Sanitizers, jdoerfert.
Herald added projects: Sanitizers, LLVM.
Remove extra semicolons so that libFuzzer can compile with
-Werror -Wextra-semi
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D58674
Files:
compiler-rt/lib/fuzzer/FuzzerCorpus.h
compiler-rt/lib/fuzzer/FuzzerExtFunctionsWindows.cpp
compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
Index: compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
===================================================================
--- compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
+++ compiler-rt/lib/fuzzer/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;
Index: compiler-rt/lib/fuzzer/FuzzerExtFunctionsWindows.cpp
===================================================================
--- compiler-rt/lib/fuzzer/FuzzerExtFunctionsWindows.cpp
+++ compiler-rt/lib/fuzzer/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"
Index: compiler-rt/lib/fuzzer/FuzzerCorpus.h
===================================================================
--- compiler-rt/lib/fuzzer/FuzzerCorpus.h
+++ compiler-rt/lib/fuzzer/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) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58674.188374.patch
Type: text/x-patch
Size: 1741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190226/f16e254d/attachment.bin>
More information about the llvm-commits
mailing list