Przeglądaj źródła

Mark several functions with DPKG_ATTR_PRINTF

Guillem Jover 16 lat temu
rodzic
commit
ab5ba0aba8
2 zmienionych plików z 3 dodań i 2 usunięć
  1. 2 1
      lib/dpkg/dpkg.h
  2. 1 1
      utils/start-stop-daemon.c

+ 2 - 1
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

+ 1 - 1
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;