From ac8cfd7b930d57b6526415a8e67204d207022bda Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Tue, 2 Jun 2009 15:02:11 +0000 Subject: avoid compiler warnings git-svn-id: svn://tug.org/texlive/trunk@13581 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvidvi/ChangeLog | 5 +++++ Build/source/texk/dvidvi/dvidvi.c | 8 ++++---- Build/source/texk/gsftopk/ChangeLog | 5 +++++ Build/source/texk/gsftopk/gsftopk.c | 16 +++++----------- Build/source/texk/seetexk/ChangeLog | 5 +++++ Build/source/texk/seetexk/tempfile.c | 3 +-- 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 + + * dvidvi.c: always include , to avoid implicit + declaration of calloc, exit, free, and malloc. + 2009-05-27 Peter Breitenlohner 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 +#ifdef WIN32 #include #endif -void error(char *); - -#ifndef VMS #include #include #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 + + * gsftopk.c: remove obsolete 'NORETURN void' -> 'volatile void' + return type for functions, this may just give a wrning. + 2009-05-07 Peter Breitenlohner 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 @@ -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 + + * tempfile.c: define __cdecl only when used, to avoid warnings + on cygwin. + 2009-05-27 Peter Breitenlohner 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) -- cgit v1.2.3