From 7037ceaca81cc891b5fdf848821dbee4cf5c67ae Mon Sep 17 00:00:00 2001 From: Alcaro Date: Sun, 28 Jun 2015 10:41:31 +0200 Subject: [PATCH] Add an assertion that the assertions are not removed. --- menu/intl/menu_hash_de.c | 3 +++ menu/intl/menu_hash_fr.c | 3 +++ menu/intl/menu_hash_pt.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/menu/intl/menu_hash_de.c b/menu/intl/menu_hash_de.c index 0f773d4d03..e487fc7328 100644 --- a/menu/intl/menu_hash_de.c +++ b/menu/intl/menu_hash_de.c @@ -857,6 +857,9 @@ int menu_hash_get_help_de(uint32_t hash, char *s, size_t len) uint32_t driver_hash = 0; settings_t *settings = config_get_ptr(); + /* If this one throws errors, stop sledgehammering square pegs */ (void)sizeof(force_iso_8859_1); + /* into round holes and READ THE COMMENTS at the top of the file. */ + switch (hash) { case MENU_LABEL_INPUT_DRIVER: diff --git a/menu/intl/menu_hash_fr.c b/menu/intl/menu_hash_fr.c index f273aa5f62..58dc638c7d 100644 --- a/menu/intl/menu_hash_fr.c +++ b/menu/intl/menu_hash_fr.c @@ -843,6 +843,9 @@ const char *menu_hash_to_str_fr(uint32_t hash) int menu_hash_get_help_fr(uint32_t hash, char *s, size_t len) { + /* If this one throws errors, stop sledgehammering square pegs */ (void)sizeof(force_iso_8859_1); + /* into round holes and READ THE COMMENTS at the top of the file. */ + switch (hash) { default: diff --git a/menu/intl/menu_hash_pt.c b/menu/intl/menu_hash_pt.c index 7d4e9f156a..bbe8d4c470 100644 --- a/menu/intl/menu_hash_pt.c +++ b/menu/intl/menu_hash_pt.c @@ -853,6 +853,9 @@ int menu_hash_get_help_pt(uint32_t hash, char *s, size_t len) uint32_t driver_hash = 0; settings_t *settings = config_get_ptr(); + /* If this one throws errors, stop sledgehammering square pegs */ (void)sizeof(force_iso_8859_1); + /* into round holes and READ THE COMMENTS at the top of the file. */ + switch (hash) { case MENU_LABEL_INPUT_DRIVER: