From cf9e8c73c4ffa671d580938c9a84d6ef0bd2710d Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Sun, 17 Mar 2019 17:19:45 -0400 Subject: 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 --- src/Destroy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Destroy.c') diff --git a/src/Destroy.c b/src/Destroy.c index e952bcc..b72f4c6 100644 --- a/src/Destroy.c +++ b/src/Destroy.c @@ -351,7 +351,7 @@ void XtDestroyWidget (Widget widget) app->destroy_list_size += 10; app->destroy_list = (DestroyRec*) XtRealloc( (char*)app->destroy_list, - (unsigned)sizeof(DestroyRec)*app->destroy_list_size + (Cardinal)(sizeof(DestroyRec) * (size_t)app->destroy_list_size) ); } dr = app->destroy_list + app->destroy_count++; -- cgit v1.2.3