]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libbacktrace: don't use ZSTD_CLEVEL_DEFAULT
authorIan Lance Taylor <iant@golang.org>
Sat, 14 Dec 2024 22:32:11 +0000 (14:32 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 14 Dec 2024 22:32:11 +0000 (14:32 -0800)
PR 117812 reports that testing GCC with zstd 1.3.4 fails because
ZSTD_CLEVEL_DEFAULT is not defined, so avoid using it.

PR libbacktrace/117812
* zstdtest.c (test_large): Use 3 rather than ZSTD_CLEVEL_DEFAULT

libbacktrace/zstdtest.c

index b9552ab1b8823c85570c23c93c6513b2d33abe36..eb572a24e52f2246e5c855bb1e79cc328e34fba6 100644 (file)
@@ -379,8 +379,7 @@ test_large (struct backtrace_state *state ATTRIBUTE_UNUSED)
     }
 
   r = ZSTD_compress (compressed_buf, compressed_bufsize,
-                    orig_buf, orig_bufsize,
-                    ZSTD_CLEVEL_DEFAULT);
+                    orig_buf, orig_bufsize, 3);
   if (ZSTD_isError (r))
     {
       fprintf (stderr, "zstd compress failed: %s\n", ZSTD_getErrorName (r));