From 390b259dfc8407484533c1cb61ca3515ed5166e8 Mon Sep 17 00:00:00 2001 From: Gabriel Rasskin Date: Fri, 19 Jun 2020 10:16:47 -0700 Subject: [PATCH] Fix unused variable issue with fuzzing methods --- tensorflow/security/fuzzing/status_group_fuzz.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tensorflow/security/fuzzing/status_group_fuzz.cc b/tensorflow/security/fuzzing/status_group_fuzz.cc index bc80cd72bc9..989e1c9d1cb 100644 --- a/tensorflow/security/fuzzing/status_group_fuzz.cc +++ b/tensorflow/security/fuzzing/status_group_fuzz.cc @@ -54,9 +54,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { } } - sg.as_summary_status(); - sg.as_concatenated_status(); - sg.AttachLogMessages(); + // Ignore warnings that these values are unused + sg.as_summary_status().IgnoreError();; + sg.as_concatenated_status().IgnoreError();; + sg.AttachLogMessages().IgnoreError();; return 0; }