• R/O
  • HTTP
  • SSH
  • HTTPS

timidity41: Commit


Commit MetaInfo

Revision1db7762dce9e09fc02172c8dc01f27e6d1bd6dfe (tree)
Time2019-01-17 13:34:22
AuthorStarg <starg@user...>
CommiterStarg

Log Message

Fix type incompatibility

Change Summary

Incremental Difference

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -169,6 +169,7 @@ if(MSVC)
169169 endif()
170170
171171 add_compile_options(/we4013) # '%s' undefined; assuming extern returning int
172+ add_compile_options(/we4028) # formal parameter %d different from declaration
172173 add_compile_options(/we4133) # 'function': incompatible types - from '%s' to '%s'
173174
174175 if(TIM41_USE_AVX2)
--- a/interface/w32g.h
+++ b/interface/w32g.h
@@ -270,7 +270,7 @@ extern int w32g_get_rc(ptr_size_t *value, int wait_if_empty);
270270 extern void w32g_lock(void);
271271 extern void w32g_unlock(void);
272272 extern void MainWndScrollbarProgressUpdate(int sec);
273-extern void PutsConsoleWnd(char *str);
273+extern void PutsConsoleWnd(const char *str);
274274 extern void w32g_ctle_play_start(int sec);
275275 extern void SettingWndApply(void);
276276 extern int w32g_lock_open_file;
@@ -278,7 +278,7 @@ extern void w32g_i_init(void);
278278 extern void CanvasChange(int mode);
279279 extern HINSTANCE hInst;
280280 extern void w32g_show_console(void);
281-extern void MPanelStartLoad(char *filename);
281+extern void MPanelStartLoad(const char *filename);
282282
283283
284284 /* w32g_utl.c */
--- a/interface/w32g_syn.c
+++ b/interface/w32g_syn.c
@@ -413,7 +413,7 @@ static int w32g_syn_main(void)
413413 return 0;
414414 }
415415
416-static VOID CALLBACK forced_exit(HWND hwnd, UINT uMsg, UINT idEvent, DWORD dwTime)
416+static VOID CALLBACK forced_exit(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
417417 {
418418 exit(0);
419419 }
--- a/interface/w32g_utl.c
+++ b/interface/w32g_utl.c
@@ -1503,7 +1503,7 @@ int IniVersionCheck(void)
15031503 return 0;
15041504 }
15051505
1506-void BitBltRect(HDC dst, HDC src, RECT *rc)
1506+void BitBltRect(HDC dst, HDC src, const RECT *rc)
15071507 {
15081508 BitBlt(dst, rc->left, rc->top,
15091509 rc->right - rc->left, rc->bottom - rc->top,
@@ -1622,7 +1622,7 @@ void TmFillRect(HDC hdc, RECT *rc, int color)
16221622 #ifndef S_ISDIR
16231623 #define S_ISDIR(mode) (((mode)&0xF000) == 0x4000)
16241624 #endif /* S_ISDIR */
1625-int is_directory(char *path)
1625+int is_directory(const char *path)
16261626 {
16271627 struct stat st;
16281628 if(*path == '@') /* special identifire for playlist file */
--- a/timidity/controls.h
+++ b/timidity/controls.h
@@ -153,7 +153,7 @@ typedef struct {
153153 void (*close)(void);
154154 int (*pass_playing_list)(int number_of_files, char *list_of_files[]);
155155 int (*read)(ptr_size_t *valp);
156- int (*write)(const uint8 *buf, size_t size);
156+ int (*write)(const uint8 *buf, int size);
157157 int (*cmsg)(int type, int verbosity_level, const char *fmt, ...);
158158 void (*event)(CtlEvent *ev); /* Control events */
159159
--- a/timidity/timidity.c
+++ b/timidity/timidity.c
@@ -8202,7 +8202,7 @@ static RETSIGTYPE sigterm_exit(int sig)
82028202 }
82038203 #endif /* HAVE_SIGNAL */
82048204
8205-static void timidity_arc_error_handler(char *error_message)
8205+static void timidity_arc_error_handler(const char *error_message)
82068206 {
82078207 extern int open_file_noise_mode;
82088208 if(open_file_noise_mode)
Show on old repository browser