The following commit has been merged in the master branch:
commit ab5ba0aba8e7b840b69d4e25ab51616352d659f8
Author: Guillem Jover <[email protected]>
Date: Mon Feb 8 20:33:55 2010 +0100
Mark several functions with DPKG_ATTR_PRINTF
diff --git a/lib/dpkg/dpkg.h b/lib/dpkg/dpkg.h
index 5a9cf9d..7306930 100644
--- a/lib/dpkg/dpkg.h
+++ b/lib/dpkg/dpkg.h
@@ -144,7 +144,8 @@ void push_checkpoint(int mask, int value);
void pop_cleanup(int flagset);
enum { ehflag_normaltidy=01, ehflag_bombout=02, ehflag_recursiveerror=04 };
-void do_internerr(const char *file, int line, const char *fmt, ...)
DPKG_ATTR_NORET;
+void do_internerr(const char *file, int line, const char *fmt, ...)
+ DPKG_ATTR_NORET DPKG_ATTR_PRINTF(3);
#if HAVE_C99
#define internerr(...) do_internerr(__FILE__, __LINE__, __VA_ARGS__)
#else
diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c
index b22097b..11a063b 100644
--- a/utils/start-stop-daemon.c
+++ b/utils/start-stop-daemon.c
@@ -218,7 +218,7 @@ static bool pid_is_exec(pid_t pid, const struct stat *esb);
#endif
-static void
+static void DPKG_ATTR_PRINTF(1)
warning(const char *format, ...)
{
va_list arglist;
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]