Commits

Anonymous committed 92ba355

warning fixes

Comments (0)

Files changed (3)

 static char* font_defaultname = "bluebold.ttf";
 static char* font_defaultpath = NULL;
 
-static void font_autoquit()
+static void font_autoquit(void)
 {
 	if(font_initialized)
 	{
 	font_dealloc,	
 	0,
 	font_getattr
+	0,
+	0,
+	0,
+	0,
+	NULL,
+	0, 
+	(hashfunc)NULL,
+	(ternaryfunc)NULL,
+	(reprfunc)NULL,
+	0L,0L,0L,0L,
+	doc_Font_MODULE /* Documentation string */
 };
 
 
     /*DOC*/    "pygame.font.Font().\n"
     /*DOC*/ ;
 
-void initfont()
+void initfont(void)
 {
 	PyObject *module, *dict, *apiobj;
 	static void* c_api[PYGAMEAPI_FONT_NUMSLOTS];
 
+	PyFONT_C_API[0] = PyFONT_C_API[0]; /*clean an unused warning*/
+
 	PyType_Init(PyFont_Type);
 
     /* create the module */
 
 
 
-static void autoquit()
+static void autoquit(void)
 {
 	if(SDL_WasInit(SDL_INIT_AUDIO))
 	{
     /*DOC*/    "control the music channel through pygame.mixer.music./\n"
     /*DOC*/ ;
 
-void initmixer()
+void initmixer(void)
 {
 	PyObject *module, *dict, *apiobj, *music;
 	static void* c_api[PYGAMEAPI_MIXER_NUMSLOTS];
 
+	PyMIXER_C_API[0] = PyMIXER_C_API[0]; /*this cleans an unused warning*/
+
 	PyType_Init(PySound_Type);
 	PyType_Init(PyChannel_Type);
 
 static int endmusic_event = SDL_NOEVENT;
 
 
-static void endmusic_callback()
+static void endmusic_callback(void)
 {
 	if(endmusic_event && SDL_WasInit(SDL_INIT_VIDEO))
 	{
     /*DOC*/    "loaded from special file-like objects through python.\n"
     /*DOC*/ ;
 
-void initmixer_music()
+void initmixer_music(void)
 {
 	PyObject *module, *dict;
 
+	PyMIXER_C_API[0] = PyMIXER_C_API[0]; /*clean an unused warning*/
+
     /* create the module */
 	module = Py_InitModule3("mixer_music", music_builtins, doc_pygame_mixer_music_MODULE);
 	dict = PyModule_GetDict(module);