diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-17 02:30:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-17 02:30:06 +0100 |
commit | a6266c63b23ed0ee16865627ca53e4f5353f0a5c (patch) | |
tree | 6ed71ecc485e9c4903818db305f6ebee454a38db /app-arch/xar/files/xar-1.8.0.0.487-variable-sized-object.patch | |
parent | 1fd4e372381e1318aae1b7d3338c04156e5da974 (diff) |
gentoo auto-resync : 17:07:2022 - 02:30:06
Diffstat (limited to 'app-arch/xar/files/xar-1.8.0.0.487-variable-sized-object.patch')
-rw-r--r-- | app-arch/xar/files/xar-1.8.0.0.487-variable-sized-object.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app-arch/xar/files/xar-1.8.0.0.487-variable-sized-object.patch b/app-arch/xar/files/xar-1.8.0.0.487-variable-sized-object.patch new file mode 100644 index 000000000000..8779c1129cd7 --- /dev/null +++ b/app-arch/xar/files/xar-1.8.0.0.487-variable-sized-object.patch @@ -0,0 +1,18 @@ +GCC doesn't like this: + +filetree.c:744:9: error: variable-sized object may not be initialized + +Since there's nothing changing at runtime at all, just make the compiler +see it's always going to be 1. + +--- a/lib/filetree.c ++++ b/lib/filetree.c +@@ -740,7 +740,7 @@ + size_t fspath1_size = 0, fspath2_size = 0; + size_t ns1_size = 0, ns2_size = 0; + const struct __xar_file_t * child1 = NULL, * child2 = NULL; +- const uint keys_to_ignore_count = 1; ++#define keys_to_ignore_count 1 + char * keys_to_ignore[keys_to_ignore_count] = { "id" }; // ID is allowed ot mismatch + + // If the two pointers match, call it the same. |