Commit 62eac02b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(restart_kom): Tell GCC that an argument is a printf-style

	format string if HAVE_ATTRIBUTE_FORMAT_PRINTF is set.
parent 041ef8d5
/*
* $Id: lyskomd.h,v 0.12 1995/11/02 21:48:46 ceder Exp $
* $Id: lyskomd.h,v 0.13 1996/07/28 23:32:19 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -39,7 +39,12 @@
#if defined(HAVE_VFPRINTF) && defined(HAVE_STDARG_H)
extern void
restart_kom(const char * format, ...) NORETURN;
restart_kom(const char * format, ...)
NORETURN
# if HAVE_ATTRIBUTE_FORMAT_PRINTF
__attribute__ ((format (printf, 1, 2)))
# endif
;
#else
extern void
restart_kom() NORETURN;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment