aboutsummaryrefslogtreecommitdiffhomepage
path: root/fuzz/Fuzz.h
diff options
context:
space:
mode:
authorGravatar kjlubick <kjlubick@google.com>2016-10-25 06:11:05 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-10-25 06:11:05 -0700
commit840f12a721fe5f544e0a03ce1e4aca3ad18389f6 (patch)
tree0b213a1506e48e9727dd6b2881be8cf008d9a3d5 /fuzz/Fuzz.h
parent90e971a41b1c190732bef34a79a7bdbdabbf5761 (diff)
Fix memory leak in FuzzGradients
Diffstat (limited to 'fuzz/Fuzz.h')
-rw-r--r--fuzz/Fuzz.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/fuzz/Fuzz.h b/fuzz/Fuzz.h
index c9c21567a5..43918f4a94 100644
--- a/fuzz/Fuzz.h
+++ b/fuzz/Fuzz.h
@@ -12,6 +12,8 @@
#include "SkTRegistry.h"
#include "SkTypes.h"
+#include <vector>
+
class Fuzz : SkNoncopyable {
public:
explicit Fuzz(sk_sp<SkData>);
@@ -22,10 +24,10 @@ public:
size_t remaining();
template <typename T>
- bool next(T* n);
+ bool SK_WARN_UNUSED_RESULT next(T* n);
// UBSAN reminds us that bool can only legally hold 0 or 1.
- bool next(bool* b) {
+ bool SK_WARN_UNUSED_RESULT next(bool* b) {
uint8_t byte;
if (!this->next(&byte)) {
return false;