We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c28a7a5 commit ad17e80Copy full SHA for ad17e80
1 file changed
lib/log.c
@@ -25,15 +25,10 @@
25
*/
26
27
#include <stdio.h>
28
-#include <errno.h>
29
#include <stdarg.h>
30
31
#include "xbps/macro.h"
32
-#include "xbps_api_impl.h"
33
-
34
-#ifdef __clang__
35
-#pragma clang diagnostic ignored "-Wformat-nonliteral"
36
-#endif
+#include "xbps.h"
37
38
int xbps_debug_level = 0;
39
int xbps_verbose_level = 0;
@@ -46,7 +41,7 @@ int xbps_verbose_level = 0;
46
41
* Use these functions to log errors, warnings and debug messages.
47
42
48
43
49
-static void
44
+static void PRINTF_LIKE(3, 0)
50
45
common_printf(FILE *f, const char *msg, const char *fmt, va_list ap)
51
{
52
if (msg != NULL)
0 commit comments