fuzzing: Fix test failure with G_DISABLE_ASSERT

https://gitlab.gnome.org/GNOME/glib/-/jobs/1875915
```
../fuzzing/fuzz_paths.c: In function ‘LLVMFuzzerTestOneInput’:
../fuzzing/fuzz_paths.c:7:16: error: variable ‘skipped_root’ set but not used [-Werror=unused-but-set-variable]
    7 |   const gchar *skipped_root;
      |                ^~~~~~~~~~~~
cc1: all warnings being treated as errors
```

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-03-08 11:52:30 +00:00
parent b3a568d19e
commit b1315988fc

View File

@ -4,7 +4,7 @@ int
LLVMFuzzerTestOneInput (const unsigned char *data, size_t size)
{
unsigned char *nul_terminated_data = NULL;
const gchar *skipped_root;
const gchar *skipped_root G_GNUC_UNUSED /* when compiling with G_DISABLE_ASSERT */;
gchar *basename = NULL, *dirname = NULL;
fuzz_set_logging_func ();