[lxc-devel] [lxcfs/master] utils: shut up compiler

brauner on Github lxc-bot at linuxcontainers.org
Mon Mar 16 17:55:40 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 365 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200316/6490fd08/attachment.bin>
-------------- next part --------------
From 9ea4e12ee86fdbd314a43cdcdab81dd5c6f1a4ed Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Mon, 16 Mar 2020 18:55:09 +0100
Subject: [PATCH] utils: shut up compiler

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/utils.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/utils.h b/src/utils.h
index 8ac6676..f55dc95 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -34,9 +34,7 @@
 
 struct file_info;
 
-__attribute__((format_arg(4))) extern char *must_strcat(char **src, size_t *sz,
-							size_t *asz,
-							const char *format, ...);
+__attribute__((__format__(__printf__, 4, 5))) extern char *must_strcat(char **src, size_t *sz, size_t *asz, const char *format, ...);
 extern bool is_shared_pidns(pid_t pid);
 extern int preserve_ns(const int pid, const char *ns);
 extern void do_release_file_info(struct fuse_file_info *fi);


More information about the lxc-devel mailing list