From: Ian Jackson Date: Sun, 19 Jun 2011 14:46:01 +0000 (+0100) Subject: portability: warn if provided snprintf.c is used X-Git-Tag: v0.2.0~74 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=commitdiff_plain;h=dee2e14c6ebac12102256639fc9e53d21eb871b2;ds=sidebyside portability: warn if provided snprintf.c is used We don't have any visibility of changes to fix bugs in the snprintf which is supplied with secnet. Therefore at the very least we should print a warning if we turn out to use it, rather than perhaps silently using an ancient and perhaps-buggy implementation. Signed-off-by: Ian Jackson --- diff --git a/snprintf.c b/snprintf.c index 86f42e9..c9ab8fc 100644 --- a/snprintf.c +++ b/snprintf.c @@ -279,6 +279,8 @@ */ +#warning Platform has no snprintf?! Please check included snprintf.c for sanity! + /* ============================================= */ /* NO USER SERVICABLE PARTS FOLLOWING THIS POINT */