aboutsummaryrefslogtreecommitdiffhomepage
path: root/fuzz/Fuzz.h
diff options
context:
space:
mode:
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;