1
0
Fork 0
forked from len0rd/rockbox

add INIT_ATTR to dircache_load and core_load_key_remap

both of these are only called in main at init

Change-Id: If2020c2832df837aca23a331474bbf2352d803d4
This commit is contained in:
William Wilgus 2024-11-26 22:07:24 -05:00 committed by William Wilgus
parent 9b4bab7e0a
commit cb478d9d3f
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ static int open_key_remap(const char *filename, int *countp)
return -1;
}
int core_load_key_remap(const char *filename)
int INIT_ATTR core_load_key_remap(const char *filename)
{
int count = 0; /* gcc falsely believes this may be used uninitialized */
int fd = open_key_remap(filename, &count);

View file

@ -3024,7 +3024,7 @@ static bool dircache_is_clean(bool saving)
* function to load the internal cache structure from disk to initialize
* the dircache really fast with little disk access.
*/
int dircache_load(void)
int INIT_ATTR dircache_load(void)
{
logf("Loading directory cache");
int fd = open_dircache_file(O_RDONLY);