When building GCC with clang, it warns that the private member suffix
in class ltrans_file_cache (defined in lto-ltrans-cache.h) is not used
which indeed looks like it is the case. This patch therefore removes
it along with its initialization in the constructor.
gcc/ChangeLog:
2025-06-24 Martin Jambor <mjambor@suse.cz>
* lto-ltrans-cache.h (class ltrans_file_cache): Remove member prefix.
* lto-ltrans-cache.cc (ltrans_file_cache::ltrans_file_cache): Do
not initialize member prefix.
ltrans_file_cache::ltrans_file_cache (const char* dir, const char* prefix,
const char* suffix,
size_t soft_cache_size):
- dir (dir), prefix (prefix), suffix (suffix),
- soft_cache_size (soft_cache_size)
+ dir (dir), suffix (suffix), soft_cache_size (soft_cache_size)
{
if (!dir) return;
std::map<checksum_t, item*> map_checksum;
std::map<std::string, item*> map_input;
- /* Cached filenames are in format "prefix%d[.ltrans]suffix". */
- const char* prefix;
+ /* Cached filenames are in format "cache_prefix%d[.ltrans]suffix". */
const char* suffix;
/* If cache items count is larger, prune deletes old items. */