mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 04:56:14 +01:00
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:
parent
b3a568d19e
commit
b1315988fc
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user