diff options
author | William Wilgus <me.theuser@yahoo.com> | 2018-10-15 23:04:04 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2018-10-18 00:06:31 +0200 |
commit | dd40c46d50f9f22643b828e80783d3576b9c1d50 (patch) | |
tree | b9700f7cbe53bb10e89d91b0c3cf1fea686eb813 /apps/menus/settings_menu.c | |
parent | e6b23a8f049a89f9f6254a7fa186d33dc65b0ba3 (diff) | |
download | rockbox-dd40c46d50f9f22643b828e80783d3576b9c1d50.tar.gz rockbox-dd40c46d50f9f22643b828e80783d3576b9c1d50.zip |
Fix menu warnings
change offending bool return to int
warning: cast between incompatible function types from
'_Bool (*)(void)' to 'int (*)(void)' [-Wcast-function-type]
forgot to remove -- typedef int (*menu_function)(void);
Change-Id: Ie4c8d3ddb0fb7843c4ec584203350d658d6bee3e
Diffstat (limited to 'apps/menus/settings_menu.c')
-rw-r--r-- | apps/menus/settings_menu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c index 5c99cb4cd4..41734a9a63 100644 --- a/apps/menus/settings_menu.c +++ b/apps/menus/settings_menu.c | |||
@@ -152,11 +152,13 @@ MENUITEM_FUNCTION(tc_update, 0, ID2P(LANG_TAGCACHE_UPDATE), | |||
152 | (int(*)(void))tagcache_update_with_splash, | 152 | (int(*)(void))tagcache_update_with_splash, |
153 | NULL, NULL, Icon_NOICON); | 153 | NULL, NULL, Icon_NOICON); |
154 | MENUITEM_SETTING(runtimedb, &global_settings.runtimedb, NULL); | 154 | MENUITEM_SETTING(runtimedb, &global_settings.runtimedb, NULL); |
155 | |||
155 | MENUITEM_FUNCTION(tc_export, 0, ID2P(LANG_TAGCACHE_EXPORT), | 156 | MENUITEM_FUNCTION(tc_export, 0, ID2P(LANG_TAGCACHE_EXPORT), |
156 | (int(*)(void))tagtree_export, NULL, | 157 | tagtree_export, NULL, |
157 | NULL, Icon_NOICON); | 158 | NULL, Icon_NOICON); |
159 | |||
158 | MENUITEM_FUNCTION(tc_import, 0, ID2P(LANG_TAGCACHE_IMPORT), | 160 | MENUITEM_FUNCTION(tc_import, 0, ID2P(LANG_TAGCACHE_IMPORT), |
159 | (int(*)(void))tagtree_import, NULL, | 161 | tagtree_import, NULL, |
160 | NULL, Icon_NOICON); | 162 | NULL, Icon_NOICON); |
161 | MENUITEM_FUNCTION(tc_paths, 0, ID2P(LANG_SELECT_DATABASE_DIRS), | 163 | MENUITEM_FUNCTION(tc_paths, 0, ID2P(LANG_SELECT_DATABASE_DIRS), |
162 | dirs_to_scan, NULL, NULL, Icon_NOICON); | 164 | dirs_to_scan, NULL, NULL, Icon_NOICON); |