Fix more compiler warnings

This commit is contained in:
kichikuou
2019-09-15 19:32:00 +09:00
parent c0ac281789
commit 8f65891ed8
8 changed files with 9 additions and 8 deletions
+1
View File
@@ -22,6 +22,7 @@
/* $Id: ndd.c,v 1.2 2003/11/09 15:06:12 chikama Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include "portab.h"
#include "ags.h"
+1 -1
View File
@@ -29,7 +29,7 @@
typedef struct {
char *title;
char *oldstring;
char *newstring;
const char *newstring;
int max;
/* for MJ cmd */
boolean need_window;
+1 -1
View File
@@ -50,7 +50,7 @@ GtkWidget *menu_label_msgbox;
GtkWidget *menu_spinbutton;
GtkWidget *menu_textentry;
GtkWidget *menu_textentry2;
gchar *menu_textentry_string;
const gchar *menu_textentry_string;
GtkWidget *menu_window_popup; /* popup menu */
GtkWidget *menu_window_exit; /* exit window */
+1 -1
View File
@@ -44,7 +44,7 @@ extern GtkWidget *menu_label_msgbox;
extern GtkWidget *menu_spinbutton;
extern GtkWidget *menu_textentry;
extern GtkWidget *menu_textentry2;
extern gchar *menu_textentry_string;
extern const gchar *menu_textentry_string;
extern GtkWidget *menu_window_popup; /* popup menu */
extern GtkWidget *menu_window_exit; /* exit window */
+3 -3
View File
@@ -78,9 +78,9 @@ struct midiinfo {
int ceptr; /* current event pointer */
/* work info */
long curtime; /* current time */
int msgindex; /* midi message buffer index */
int msgsize; /* size of current allocaed msg */
long curtime; /* current time */
size_t msgindex; /* midi message buffer index */
size_t msgsize; /* size of current allocaed msg */
unsigned char *msgbuffer; /* message buffer */
/* system35 jump info */
+1
View File
@@ -23,6 +23,7 @@
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
+1 -1
View File
@@ -489,7 +489,7 @@ void Xcore_fadeIn(int step) {
}
}
void Xcore_fadeOut(step) {
void Xcore_fadeOut(int step) {
if (step == 0) {
Xcore_sync();
-1
View File
@@ -30,7 +30,6 @@
#ifdef HAVE_XF86VMODE
# include <X11/extensions/xf86vmode.h>
# include <X11/extensions/xf86vmstr.h>
#endif
#include "portab.h"