#include "setup.h"
+#include "unused.h"
/*** Constants that may be set at compile time ***/
static int mypower(int, int);
static char *getfiledata(FILE *, long *);
-static void *mixer(void *);
+static void *mixer(void);
static pthread_t mixer_id;
static pthread_t playaiff_id;
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
- err = pthread_create(&(mixer_id), &attr, &mixer, NULL);
+ err = pthread_create(&(mixer_id), &attr, (void *) &mixer, NULL);
if (err != 0) {
printf("Can't create mixer thread :[%s]", strerror(err));
exit(1);
* Data presented to the mixer must be floats at 44100hz
*
*/
-static void *mixer(void *arg)
+static void *mixer(void)
{
short *shortbuffer;
int default_driver;
int samplecount;
int i;
- arg = arg; /* Keep -Wall quiet */
-
ao_initialize();
default_driver = ao_default_driver_id();
* RESTART_END - restart is complete
*
*/
-void os_restart_game (int stage)
+void os_restart_game (int UNUSED (stage))
{
- stage = stage; /* Keep -Wall quiet */
}
* cleanly resize the window.
*
*/
-void sigwinch_handler(int sig)
+void sigwinch_handler(int UNUSED(sig))
{
/*
There are some significant problems involved in getting resizes to work
explaination for this. Because of this trouble, this function currently
does nothing.
*/
- sig = sig; /* Keep -Wall quiet */
-
}
*
*/
-int os_read_file_name (char *file_name, const char *default_name, int flag)
+int os_read_file_name (char *file_name, const char *default_name, int UNUSED(flag))
{
int saved_replay = istream_replay;
int saved_record = ostream_record;
- flag = flag; /*Keep -Wall quiet */
-
/* Turn off playback and recording temporarily */
istream_replay = 0;
* being erased. This is not relevant for the curses interface.
*
*/
-void os_erase_area (int top, int left, int bottom, int right, int win)
+void os_erase_area (int top, int left, int bottom, int right, int UNUSED(win))
{
int y, x, i, j;
- win = win; /* Keep -Wall quiet */
-
/* Catch the most common situation and do things the easy way */
if ((top == 1) && (bottom == h_screen_rows) &&
(left == 1) && (right == h_screen_cols)) {
* choose fonts which aren't supported by the interface.
*
*/
-void os_set_font (int new_font)
+void os_set_font (int UNUSED(new_font))
{
/* Not implemented */
- new_font = new_font; /* Keep -Wall quiet */
-
}/* os_set_font */
*/
#include "dumb_frotz.h"
-#include "../common/unused.h"
f_setup_t f_setup;
*/
#include "dumb_frotz.h"
-#include "../common/unused.h"
f_setup_t f_setup;
*/
#include "dumb_frotz.h"
-#include "../common/unused.h"
f_setup_t f_setup;