mirror of
https://github.com/openharmony/third_party_sane-airscan.git
synced 2026-06-30 21:17:55 -04:00
Workaround for gcc 11 false positive warning
This commit is contained in:
+2
-4
@@ -110,10 +110,8 @@ trace_open (const char *device_name)
|
||||
path = str_append(path, ".log");
|
||||
t->log = fopen(path, "w");
|
||||
|
||||
// work around gcc 11 warning
|
||||
log_assert(NULL, str_len(path) >= 4);
|
||||
|
||||
strcpy(path + str_len(path) - 4, ".tar");
|
||||
path = str_resize(path, str_len(path) - 4);
|
||||
path = str_append(path, ".tar");
|
||||
t->data = fopen(path, "wb");
|
||||
|
||||
mem_free(path);
|
||||
|
||||
Reference in New Issue
Block a user