summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-02 15:02:11 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-02 15:02:11 +0000
commitac8cfd7b930d57b6526415a8e67204d207022bda (patch)
tree1f3a0a32860aade97bf67308cd65851967143f88
parentbcaa6454cc914b0d28284675818f73b908e9adea (diff)
avoid compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@13581 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/dvidvi/ChangeLog5
-rw-r--r--Build/source/texk/dvidvi/dvidvi.c8
-rw-r--r--Build/source/texk/gsftopk/ChangeLog5
-rw-r--r--Build/source/texk/gsftopk/gsftopk.c16
-rw-r--r--Build/source/texk/seetexk/ChangeLog5
-rw-r--r--Build/source/texk/seetexk/tempfile.c3
6 files changed, 25 insertions, 17 deletions
diff --git a/Build/source/texk/dvidvi/ChangeLog b/Build/source/texk/dvidvi/ChangeLog
index eae98bf51ec..120a7758252 100644
--- a/Build/source/texk/dvidvi/ChangeLog
+++ b/Build/source/texk/dvidvi/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-02 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * dvidvi.c: always include <stdlib.h>, to avoid implicit
+ declaration of calloc, exit, free, and malloc.
+
2009-05-27 Peter Breitenlohner <peb@mppmu.mpg.de>
Adapt to TL2009 build system.
diff --git a/Build/source/texk/dvidvi/dvidvi.c b/Build/source/texk/dvidvi/dvidvi.c
index 5d9a4948a39..0ff035f1cc5 100644
--- a/Build/source/texk/dvidvi/dvidvi.c
+++ b/Build/source/texk/dvidvi/dvidvi.c
@@ -38,13 +38,11 @@
"Improved from 1.0 to 1.1, 1994, Markus Kohm\n"
#define STRINGSIZE (500L) /* maximum number of strings in program */
-#ifdef WIN32
+#ifndef VMS
#include <stdlib.h>
+#ifdef WIN32
#include <malloc.h>
#endif
-void error(char *);
-
-#ifndef VMS
#include <stdio.h>
#include <string.h>
#else /* VMS */
@@ -53,6 +51,8 @@ void error(char *);
#endif /* VMS */
#define MAXPPERP (32)
+void error(char *);
+
/* defines READBIN, WRITEBIN, PATHSEP and IS_DIR_SEP*/
#ifdef HAVE_CONFIG_H
diff --git a/Build/source/texk/gsftopk/ChangeLog b/Build/source/texk/gsftopk/ChangeLog
index 5a3a6432aa9..989c349ecdf 100644
--- a/Build/source/texk/gsftopk/ChangeLog
+++ b/Build/source/texk/gsftopk/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-02 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * gsftopk.c: remove obsolete 'NORETURN void' -> 'volatile void'
+ return type for functions, this may just give a wrning.
+
2009-05-07 Peter Breitenlohner <peb@mppmu.mpg.de>
Adapt to TL2009 build system.
diff --git a/Build/source/texk/gsftopk/gsftopk.c b/Build/source/texk/gsftopk/gsftopk.c
index 233ad6eff90..f2d56917dcf 100644
--- a/Build/source/texk/gsftopk/gsftopk.c
+++ b/Build/source/texk/gsftopk/gsftopk.c
@@ -352,12 +352,6 @@ char *buffer_stdin; /* This is the buffer from where data are taken. */
#define GS_PATH "gs"
#endif
-#if __GNUC__
-#define NORETURN volatile
-#else
-#define NORETURN /* nothing */
-#endif
-
#if STDC_HEADERS && __STDC__
#define NeedVarargsPrototypes 1
#include <stdarg.h>
@@ -529,7 +523,7 @@ int pk_len;
* Exit, and kill the child process, too.
*/
-NORETURN void
+void
exit_toto_too P1H(void)
{
#if !WIN32
@@ -588,11 +582,11 @@ exit_toto_too P1H(void)
*/
#if NeedVarargsPrototypes
-NORETURN void
+void
oops(const char *message, ...)
#else
/* VARARGS */
-NORETURN void
+void
oops(va_alist)
va_dcl
#endif
@@ -620,11 +614,11 @@ oops(va_alist)
* Same as oops, but with arguments.
*/
#if NeedVarargsPrototypes
-NORETURN void
+void
opt_oops(const char *message, ...)
#else
/* VARARGS */
-NORETURN void
+void
opt_oops(va_alist)
va_dcl
#endif
diff --git a/Build/source/texk/seetexk/ChangeLog b/Build/source/texk/seetexk/ChangeLog
index 17823312fab..1d8007ff6d6 100644
--- a/Build/source/texk/seetexk/ChangeLog
+++ b/Build/source/texk/seetexk/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-02 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * tempfile.c: define __cdecl only when used, to avoid warnings
+ on cygwin.
+
2009-05-27 Peter Breitenlohner <peb@mppmu.mpg.de>
Adapt to TL2009 build system.
diff --git a/Build/source/texk/seetexk/tempfile.c b/Build/source/texk/seetexk/tempfile.c
index c47fffa519f..8d55c8bab52 100644
--- a/Build/source/texk/seetexk/tempfile.c
+++ b/Build/source/texk/seetexk/tempfile.c
@@ -43,11 +43,10 @@ char *getenv();
#define TMP_OPEN_MODE 2
#endif
+#ifdef DOSISH
#ifndef WIN32
#define __cdecl
#endif
-
-#ifdef DOSISH
static char *TmpFile;
static void __cdecl
RemoveTempFile(void)