mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
9b4bab7e0a
commit
cb478d9d3f
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ static int open_key_remap(const char *filename, int *countp)
|
||||||
return -1;
|
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 count = 0; /* gcc falsely believes this may be used uninitialized */
|
||||||
int fd = open_key_remap(filename, &count);
|
int fd = open_key_remap(filename, &count);
|
||||||
|
|
|
@ -3024,7 +3024,7 @@ static bool dircache_is_clean(bool saving)
|
||||||
* function to load the internal cache structure from disk to initialize
|
* function to load the internal cache structure from disk to initialize
|
||||||
* the dircache really fast with little disk access.
|
* the dircache really fast with little disk access.
|
||||||
*/
|
*/
|
||||||
int dircache_load(void)
|
int INIT_ATTR dircache_load(void)
|
||||||
{
|
{
|
||||||
logf("Loading directory cache");
|
logf("Loading directory cache");
|
||||||
int fd = open_dircache_file(O_RDONLY);
|
int fd = open_dircache_file(O_RDONLY);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue