[sound-juicer] Change ‘const static’ to ‘static const’
- From: Phillip Wood <pwood src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sound-juicer] Change ‘const static’ to ‘static const’
- Date: Mon, 10 Oct 2016 10:35:03 +0000 (UTC)
commit 0037371926bed9ce2ee28c3f096d639eb059afe7
Author: Phillip Wood <phillip wood dunelm org uk>
Date: Fri Oct 7 18:47:39 2016 +0100
Change ‘const static’ to ‘static const’
C99 requires that static comes before const.
Found with -Wold-style-declaration.
libjuicer/sj-metadata.c | 2 +-
src/sj-main.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libjuicer/sj-metadata.c b/libjuicer/sj-metadata.c
index e1da027..c3621d9 100644
--- a/libjuicer/sj-metadata.c
+++ b/libjuicer/sj-metadata.c
@@ -366,7 +366,7 @@ sj_metadata_helper_lookup_country_code (const char *code)
/* Musicbrainz uses some additional codes on top of ISO-3166 so
treat those as a special case if we don't get a match from the
iso-codes data */
- const static struct {
+ static const struct {
char *code;
char *name;
} mb_countries[] = {
diff --git a/src/sj-main.c b/src/sj-main.c
index 6e90e8b..729f197 100644
--- a/src/sj-main.c
+++ b/src/sj-main.c
@@ -502,7 +502,7 @@ hide_composer_fields (void)
static void
composer_show_hide (const char* genre)
{
- const static char *composer_genres[] = {
+ static const char *composer_genres[] = {
N_("Classical"), N_("Lieder"), N_("Opera"), N_("Chamber"), N_("Musical")
}; /* Genres for which the composer fields should be shown. */
#define COUNT (G_N_ELEMENTS (composer_genres))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]