summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/mthr_stub.c
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2005-08-10 10:05:02 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2005-08-10 10:05:02 +0000
commit5ce4d1685b6e13d588a0d7724992f2875c6c4cd2 (patch)
tree47ebc6969d3234c7690260b9c849607574d154d1 /winsup/mingw/mthr_stub.c
parentbe5c9e096536a3ef0953d5eb69b4b64332a06585 (diff)
downloadcygnal-5ce4d1685b6e13d588a0d7724992f2875c6c4cd2.tar.gz
cygnal-5ce4d1685b6e13d588a0d7724992f2875c6c4cd2.tar.bz2
cygnal-5ce4d1685b6e13d588a0d7724992f2875c6c4cd2.zip
* mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
a diagnostic, guarded by #ifdef DEBUG. (__mingwthr_remove_key_dtor): Likewise.
Diffstat (limited to 'winsup/mingw/mthr_stub.c')
-rw-r--r--winsup/mingw/mthr_stub.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/winsup/mingw/mthr_stub.c b/winsup/mingw/mthr_stub.c
index cb926c16c..e337b9a1c 100644
--- a/winsup/mingw/mthr_stub.c
+++ b/winsup/mingw/mthr_stub.c
@@ -15,31 +15,30 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
-#include <assert.h>
/*
* __mingwthr_register_key_dtor (DWORD key, void (*dtor) (void *))
*
* Public interface called by C++ exception handling mechanism in
* libgcc (cf: __gthread_key_create).
- *
- * THIS SHOULD NEVER BE CALLED!
- *
+ * No-op versions.
*/
int
__mingwthr_key_dtor (DWORD key, void (*dtor) (void *))
{
- assert (0);
- /* NOTREACHED */
+#ifdef DEBUG
+ printf ("%s: ignoring key: (%ld) / dtor: (%x)\n",
+ __FUNCTION__, key, dtor);
+#endif
return 0;
}
-
int
__mingwthr_remove_key_dtor (DWORD key )
{
- assert (0);
- /* NOTREACHED */
+#ifdef DEBUG
+ printf ("%s: ignoring key: (%ld)\n", __FUNCTION__, key );
+#endif
return 0;
}