summaryrefslogtreecommitdiff
path: root/src/Threads.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-03-17 17:19:45 -0400
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-04-06 10:31:25 -0700
commitcf9e8c73c4ffa671d580938c9a84d6ef0bd2710d (patch)
tree21cd4cab8b92df9f9050ea8df40d9cc35bed451d /src/Threads.c
parentfb7e899e94dd402c868e8eb59ccf32284732f6ac (diff)
This cleans up the "easy" warning fixes which can be made using my
Regress script, comparing object-files before/after the edits: https://invisible-island.net/ansification/index.html https://invisible-island.net/scripts/readme.html The changes are casts, which quiet the gcc warnings about implicit conversion that my "gcc-normal" script would show. I avoided reformatting the code. The change reduces the number of gcc warnings from 769 to 163. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/Threads.c')
-rw-r--r--src/Threads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Threads.c b/src/Threads.c
index 7ae9e18..ee19c2e 100644
--- a/src/Threads.c
+++ b/src/Threads.c
@@ -199,7 +199,7 @@ AppUnlock(XtAppContext app)
xmutex_unlock(app_lock->mutex);
#else
xthread_t self;
-
+ (void)self;
self = xthread_self();
xmutex_lock(app_lock->mutex);
assert(xthread_equal(app_lock->holder, self));
@@ -236,7 +236,7 @@ YieldAppLock(
unsigned ii;
app_lock->stack.st = (struct _Tstack *)
XtRealloc ((char *)app_lock->stack.st,
- (app_lock->stack.size + STACK_INCR) * sizeof (struct _Tstack));
+ (Cardinal)((app_lock->stack.size + STACK_INCR) * sizeof (struct _Tstack)));
ii = app_lock->stack.size;
app_lock->stack.size += STACK_INCR;
for ( ; ii < app_lock->stack.size; ii++) {