diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-07-03 08:56:34 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-07-03 08:56:34 (GMT) |
commit | a6b67f2ef278781f45bebfd076704509162705d0 (patch) | |
tree | 46d07506ab1592db27fe6bb89f91c217cd70eba8 /unix | |
parent | 73faa3bbb6f9440fb35f0efe0e77ff4c34b96f1f (diff) | |
download | tcl-a6b67f2ef278781f45bebfd076704509162705d0.zip tcl-a6b67f2ef278781f45bebfd076704509162705d0.tar.gz tcl-a6b67f2ef278781f45bebfd076704509162705d0.tar.bz2 |
Fix compiler warning when compiling Cygwin port with -Wwrite-strings
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixNotfy.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c index b87af1b..aacc8d2d 100644 --- a/unix/tclUnixNotfy.c +++ b/unix/tclUnixNotfy.c @@ -96,7 +96,7 @@ typedef struct ThreadSpecificData { * that an event is ready to be processed * by sending this event. */ void *hwnd; /* Messaging window. */ -#else +#else /* !__CYGWIN__ */ Tcl_Condition waitCV; /* Any other thread alerts a notifier that an * event is ready to be processed by signaling * this condition variable. */ @@ -184,9 +184,9 @@ static Tcl_ThreadId notifierThread; */ #ifdef TCL_THREADS -static void NotifierThreadProc(ClientData clientData); +static void NotifierThreadProc(ClientData clientData); #endif -static int FileHandlerEventProc(Tcl_Event *evPtr, int flags); +static int FileHandlerEventProc(Tcl_Event *evPtr, int flags); /* * Import of Windows API when building threaded with Cygwin. @@ -213,14 +213,14 @@ typedef struct { void *hCursor; void *hbrBackground; void *lpszMenuName; - void *lpszClassName; + const void *lpszClassName; } WNDCLASS; extern void __stdcall CloseHandle(void *); extern void *__stdcall CreateEventW(void *, unsigned char, unsigned char, void *); -extern void * __stdcall CreateWindowExW(void *, void *, void *, DWORD, int, - int, int, int, void *, void *, void *, void *); +extern void * __stdcall CreateWindowExW(void *, const void *, const void *, + DWORD, int, int, int, int, void *, void *, void *, void *); extern DWORD __stdcall DefWindowProcW(void *, int, void *, void *); extern unsigned char __stdcall DestroyWindow(void *); extern int __stdcall DispatchMessageW(const MSG *); |