diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-05-04 10:15:57 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-05-04 10:15:57 +0000 |
commit | 088b61d350fba63ae429a3c79fe765e4b4b9cc7b (patch) | |
tree | f228e4a69be7a6f6ab25409a191d183c77973611 /Build/source/utils/vlna/vlna-1.5-PATCHES/patch-03-warnings | |
parent | bc4eca8d682e6e8c0f05ffcab3d38d3030782cd2 (diff) |
reorganize: vlna-1.5 plus vlna-1.5-PATCHES
git-svn-id: svn://tug.org/texlive/trunk@22301 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/vlna/vlna-1.5-PATCHES/patch-03-warnings')
-rw-r--r-- | Build/source/utils/vlna/vlna-1.5-PATCHES/patch-03-warnings | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Build/source/utils/vlna/vlna-1.5-PATCHES/patch-03-warnings b/Build/source/utils/vlna/vlna-1.5-PATCHES/patch-03-warnings new file mode 100644 index 00000000000..8e07f53981c --- /dev/null +++ b/Build/source/utils/vlna/vlna-1.5-PATCHES/patch-03-warnings @@ -0,0 +1,26 @@ +2011-05-02 Peter Breitenlohner <peb@mppmu.mpg.de> + + * vlna.w (hexnum, settiestr): Declare as static. + (settiestr): Drop unused local variable 'c'. + +diff -ur vlna-1.5.orig/vlna.w vlna-1.5/vlna.w +--- vlna-1.5.orig/vlna.w 2011-05-02 16:00:12.000000000 +0200 ++++ vlna-1.5/vlna.w 2011-05-02 16:02:38.000000000 +0200 +@@ -172,14 +172,14 @@ + + @ Vyřešíme konverzi kódu zapsaného za parametrem \.{-x} na string |tiestr|. + @<Pomocné funkce@>= +-unsigned char hexnum(char c) { ++static unsigned char hexnum(char c) { + if (c >= '0' && c <= '9') return c - '0'; + if (c >= 'A' && c <= 'F') return c - 'A' + 10; + if (c >= 'a' && c <= 'f') return c - 'a' + 10; + printusage (), exit (BAD_OPTIONS); + } +-void settiestr(char *s) { +- int i, j, c; ++static void settiestr(char *s) { ++ int i, j; + i = strlen(s); + if ((i > 2*MAXLEN) || i%2 == 1) printusage (), exit (BAD_OPTIONS); + tiestrlen = i/2; |