A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

add INIT_ATTR to dircache_load and core_load_key_remap

both of these are only called in main at init

Change-Id: If2020c2832df837aca23a331474bbf2352d803d4

authored by

William Wilgus and committed by
William Wilgus
cb478d9d 9b4bab7e

+2 -2
+1 -1
apps/core_keymap.c
··· 69 69 return -1; 70 70 } 71 71 72 - int core_load_key_remap(const char *filename) 72 + int INIT_ATTR core_load_key_remap(const char *filename) 73 73 { 74 74 int count = 0; /* gcc falsely believes this may be used uninitialized */ 75 75 int fd = open_key_remap(filename, &count);
+1 -1
firmware/common/dircache.c
··· 3024 3024 * function to load the internal cache structure from disk to initialize 3025 3025 * the dircache really fast with little disk access. 3026 3026 */ 3027 - int dircache_load(void) 3027 + int INIT_ATTR dircache_load(void) 3028 3028 { 3029 3029 logf("Loading directory cache"); 3030 3030 int fd = open_dircache_file(O_RDONLY);