diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-09-29 12:06:09 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-09-29 12:06:09 +0000 |
commit | dd71bd6938c5f75cdf79dd004fb50fb03c53e207 (patch) | |
tree | 9a2b73a818a8764978073f024d9841bae8bdf494 /Build/source/texk/dvisvgm | |
parent | df2d55aedf664304987100812c45bdf4ef8231a0 (diff) |
dvisvgm: avoid compiler warning
git-svn-id: svn://tug.org/texlive/trunk@24129 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm')
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-1.0.8-PATCHES/patch-04-unused_static | 21 | ||||
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-1.0.8/src/Process.cpp | 2 |
2 files changed, 23 insertions, 0 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.0.8-PATCHES/patch-04-unused_static b/Build/source/texk/dvisvgm/dvisvgm-1.0.8-PATCHES/patch-04-unused_static new file mode 100644 index 00000000000..b093ca034ee --- /dev/null +++ b/Build/source/texk/dvisvgm/dvisvgm-1.0.8-PATCHES/patch-04-unused_static @@ -0,0 +1,21 @@ + Avoid gcc warning (unused static function). + +diff -ur dvisvgm-1.0.8.orig/src/Process.cpp dvisvgm-1.0.8/src/Process.cpp +--- dvisvgm-1.0.8.orig/src/Process.cpp 2011-06-03 10:33:00.000000000 +0200 ++++ dvisvgm-1.0.8/src/Process.cpp 2011-09-12 12:24:08.000000000 +0200 +@@ -42,6 +42,7 @@ + } + + ++#ifndef __WIN32__ + /** Extracts whitespace-sparated parameters from a string. + * @param[in] paramstr the parameter string + * @param[out] params vector holding the extracted parameters */ +@@ -70,6 +71,7 @@ + left = ++right; + } + } ++#endif + + + /** Runs the process and waits until it's finished. diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.0.8/src/Process.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.0.8/src/Process.cpp index be9f4d79c96..43352a3bdca 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-1.0.8/src/Process.cpp +++ b/Build/source/texk/dvisvgm/dvisvgm-1.0.8/src/Process.cpp @@ -42,6 +42,7 @@ Process::Process (const string &cmd, const string ¶mstr) } +#ifndef __WIN32__ /** Extracts whitespace-sparated parameters from a string. * @param[in] paramstr the parameter string * @param[out] params vector holding the extracted parameters */ @@ -70,6 +71,7 @@ static void split_paramstr (string paramstr, vector<const char*> ¶ms) { left = ++right; } } +#endif /** Runs the process and waits until it's finished. |