Hi,

attached patch changes some more function declarations without
parameters from () -> (void).

Please consider applying.

Regards,
Stefan

Index: lib/ivis_common/piestate.h
===================================================================
--- lib/ivis_common/piestate.h  (revision 347)
+++ lib/ivis_common/piestate.h  (working copy)
@@ -141,7 +141,7 @@
  *     Global ProtoTypes
  */
 /***************************************************************************/
-extern void pie_SetDefaultStates();//Sets all states
+extern void pie_SetDefaultStates(void);//Sets all states
 extern void pie_SetDepthBufferStatus(DEPTH_MODE depthMode);
 extern WZ_DEPRECATED void pie_SetGammaValue(float val);
 //renderer capability
Index: lib/script/interp.c
===================================================================
--- lib/script/interp.c (revision 347)
+++ lib/script/interp.c (working copy)
@@ -958,7 +958,7 @@
        return TRUE;
 }
 
-BOOL IsRetStackEmpty()
+BOOL IsRetStackEmpty(void)
 {
        if(retStackPos == (-1)) return TRUE;
        return FALSE;
@@ -981,7 +981,7 @@
        return TRUE;
 }
 
-SDWORD GetCallDepth()
+SDWORD GetCallDepth(void)
 {
        return (retStackPos + 1) / 2;
 }
Index: lib/sequence/adpcm.c
===================================================================
--- lib/sequence/adpcm.c        (revision 347)
+++ lib/sequence/adpcm.c        (working copy)
@@ -1,3 +1,5 @@
+#include "adpcm.h"
+
 char index_adjust[8] = { -1, -1, -1, -1, 2, 4, 6, 8 };
 
 short step_size[89] = {
@@ -62,7 +64,7 @@
        return pred_val;
 }
 
-void adpcm_init() {
+void adpcm_init(void) {
        pred_val = 0;
        step_idx = 0;
 }
Index: lib/sequence/adpcm.h
===================================================================
--- lib/sequence/adpcm.h        (revision 347)
+++ lib/sequence/adpcm.h        (working copy)
@@ -1,7 +1,7 @@
 #ifndef __ADPCM_H__
 #define __ADPCM_H__
 
-void adpcm_init();
+void adpcm_init(void);
 void adpcm_decode(unsigned char* input, unsigned int input_size, short** 
output);
 
 #endif
Index: lib/sound/playlist.c
===================================================================
--- lib/sound/playlist.c        (revision 347)
+++ lib/sound/playlist.c        (working copy)
@@ -23,7 +25,7 @@
 
 #define CURRENT_TRACK playlist[current_track]
 
-void PlayList_Init() {
+void PlayList_Init(void) {
        unsigned int i;
 
        for (i = 0; i < NB_TRACKS; ++i) {
@@ -34,7 +36,7 @@
        }
 }
 
-void PlayList_Quit() {
+void PlayList_Quit(void) {
        unsigned int i, j;
 
        for( i = 0; i < NB_TRACKS; ++i ) {
@@ -148,7 +150,7 @@
        current_song = 0;
 }
 
-char* PlayList_CurrentSong() {
+char* PlayList_CurrentSong(void) {
        if (current_song >= CURRENT_TRACK.nb_songs) {
                return NULL;
        } else {
@@ -156,7 +158,7 @@
        }
 }
 
-char* PlayList_NextSong() {
+char* PlayList_NextSong(void) {
        if (++current_song >= CURRENT_TRACK.nb_songs) {
                PlayList_Shuffle();
                current_song = 0;
@@ -169,6 +171,6 @@
        }
 }
 
-void PlayList_DeleteCurrentSong() {
+void PlayList_DeleteCurrentSong(void) {
 }
 
Index: lib/sound/cdaudio.c
===================================================================
--- lib/sound/cdaudio.c (revision 347)
+++ lib/sound/cdaudio.c (working copy)
@@ -183,7 +177,7 @@
 
 #ifndef WZ_NOMP3
 
-void mp3_refill() {
+static void mp3_refill(void) {
        while (mad_frame_decode(&mp3_frame, &mp3_stream)) {
                int size;
 
Index: lib/sound/cdaudio.h
===================================================================
--- lib/sound/cdaudio.h (revision 347)
+++ lib/sound/cdaudio.h (working copy)
@@ -11,7 +11,7 @@
 BOOL   cdAudio_Stop( void );
 BOOL   cdAudio_Pause( void );
 BOOL   cdAudio_Resume( void );
-void   cdAudio_Update();
+void   cdAudio_Update(void);
 
 /***************************************************************************/
 
Index: lib/framework/frameresource.c
===================================================================
--- lib/framework/frameresource.c       (revision 347)
+++ lib/framework/frameresource.c       (working copy)
@@ -54,7 +54,7 @@
 }
 
 /* do the callback for the resload display function */
-void resDoResLoadCallback()
+void resDoResLoadCallback(void)
 {
        if(resLoadCallback)
        {
Index: lib/ivis_opengl/screen.c
===================================================================
--- lib/ivis_opengl/screen.c    (revision 347)
+++ lib/ivis_opengl/screen.c    (working copy)
@@ -515,7 +515,7 @@
        free(dm->buffer);
 }
 
-void screenDoDumpToDiskIfRequired()
+void screenDoDumpToDiskIfRequired(void)
 {
        static unsigned char* buffer = NULL;
        static unsigned int buffer_size = 0;
Index: lib/ivis_opengl/piemode.c
===================================================================
--- lib/ivis_opengl/piemode.c   (revision 347)
+++ lib/ivis_opengl/piemode.c   (working copy)
@@ -44,7 +44,7 @@
  *     Local ProtoTypes
  */
 /***************************************************************************/
-extern void screenDoDumpToDiskIfRequired();
+extern void screenDoDumpToDiskIfRequired(void);
 
 /***************************************************************************/
 /*
Index: lib/ivis_opengl/piedraw.c
===================================================================
--- lib/ivis_opengl/piedraw.c   (revision 347)
+++ lib/ivis_opengl/piedraw.c   (working copy)
@@ -152,7 +152,7 @@
        shadows = TRUE;
 }
 
-void pie_EndLighting() {
+void pie_EndLighting(void) {
        shadows = FALSE;
        lighting = FALSE;
 }
@@ -824,7 +824,7 @@
        nb_tshapes = 0;
 }
 
-void pie_RemainingPasses() {
+void pie_RemainingPasses(void) {
        pie_DrawShadows();
        pie_DrawRemainingTransShapes();
 }
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to