mirror of
https://github.com/ianlancetaylor/libbacktrace.git
synced 2026-05-10 09:39:05 +08:00
libbacktrace: don't use ZSTD_CLEVEL_DEFAULT
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
This commit is contained in:
@@ -379,8 +379,7 @@ test_large (struct backtrace_state *state ATTRIBUTE_UNUSED)
|
|||||||
}
|
}
|
||||||
|
|
||||||
r = ZSTD_compress (compressed_buf, compressed_bufsize,
|
r = ZSTD_compress (compressed_buf, compressed_bufsize,
|
||||||
orig_buf, orig_bufsize,
|
orig_buf, orig_bufsize, 3);
|
||||||
ZSTD_CLEVEL_DEFAULT);
|
|
||||||
if (ZSTD_isError (r))
|
if (ZSTD_isError (r))
|
||||||
{
|
{
|
||||||
fprintf (stderr, "zstd compress failed: %s\n", ZSTD_getErrorName (r));
|
fprintf (stderr, "zstd compress failed: %s\n", ZSTD_getErrorName (r));
|
||||||
|
|||||||
Reference in New Issue
Block a user