From 01485655d2969d97405f6ba0f9f85124e5e62eb5 Mon Sep 17 00:00:00 2001 From: cpickett Date: Sun, 28 Dec 2008 23:00:21 +0000 Subject: [PATCH] * silence warning when nothing is included in libcompat git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@473 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- lib/libcompat.c | 7 +++++++ lib/libcompat.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/lib/libcompat.c b/lib/libcompat.c index e69de29..b6074b8 100644 --- a/lib/libcompat.c +++ b/lib/libcompat.c @@ -0,0 +1,7 @@ +#include "libcompat.h" + +/* silence warnings about an empty library */ +void +ck_do_nothing (void) +{ +} diff --git a/lib/libcompat.h b/lib/libcompat.h index ef4d010..10eb9b4 100644 --- a/lib/libcompat.h +++ b/lib/libcompat.h @@ -22,3 +22,6 @@ unsigned int sleep (unsigned int seconds); #if !HAVE_STRSIGNAL const char *strsignal(int sig); #endif /* !HAVE_STRSIGNAL */ + +/* silence warnings about an empty library */ +void ck_do_nothing (void); -- 2.49.0