From 49eede474493e4f3a2144b01ecc0f81e6781c34d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 25 Jan 2009 23:31:44 +0100 Subject: [PATCH] Avoid warning from OSF/1 C compiler. --- ChangeLog | 4 ++++ lib/glthread/threadlib.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 81f8f804b..7d37a91cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-01-25 Bruno Haible + * lib/glthread/threadlib.c (dummy): New declaration. + +2009-01-25 Bruno Haible + * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete multibyte characters also for the GB18030 encoding. Don't crash when the encoding is unknown and nstate = 0. Needed on OSF/1 5.1. diff --git a/lib/glthread/threadlib.c b/lib/glthread/threadlib.c index c12195289..fe7a2cf8c 100644 --- a/lib/glthread/threadlib.c +++ b/lib/glthread/threadlib.c @@ -1,5 +1,5 @@ /* Multithreading primitives. - Copyright (C) 2005-2008 Free Software Foundation, Inc. + Copyright (C) 2005-2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -67,3 +67,7 @@ glthread_in_use (void) #endif /* ========================================================================= */ + +/* This declaration is solely to ensure that after preprocessing + this file is never empty. */ +typedef int dummy; -- 2.11.0