diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-10-20 10:15:35 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-10-20 10:15:35 +0000 |
commit | 8f2595351a298f22b86e262ba91dfb520d528125 (patch) | |
tree | 3a9fb2a186d1ad070bb9a99c23ac8d5b110f0e37 /Build/source/texk/kpathsea | |
parent | 2fa4b9b2ec576b4b3718484c738435bdaaeeadf5 (diff) |
texk/kpathsea: Minor change to avoid compiler warning
git-svn-id: svn://tug.org/texlive/trunk@35406 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea')
-rw-r--r-- | Build/source/texk/kpathsea/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/db.c | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index c26653f5130..83909d9844f 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,7 @@ +2014-10-20 Peter Breitenlohner <peb@mppmu.mpg.de> + + * db.c (db_names): Use initialized non-const strings to avoid warning. + 2014-10-19 Karl Berry <karl@tug.org> * db.c (db_names): list DB_NAME_LC first, and list both always, diff --git a/Build/source/texk/kpathsea/db.c b/Build/source/texk/kpathsea/db.c index 9a4516d40bb..2c1ed6344d0 100644 --- a/Build/source/texk/kpathsea/db.c +++ b/Build/source/texk/kpathsea/db.c @@ -45,9 +45,13 @@ being the same file, it's convenient to ignore the first of a pair. So put the canonical name second. Sure wish I hadn't used a capital letter in the name in the first place. */ +/* We use non-const strings initialized with string constants in order + to avoid some compiler warnings. */ +static char db_name_lc[] = DB_NAME_LC; +static char db_name[] = DB_NAME; static string db_names[] = { - DB_NAME_LC, - DB_NAME, + db_name_lc, + db_name, NULL }; |