Skip to content
Snippets Groups Projects
Commit 78827e32 authored by Sergey Bronnikov's avatar Sergey Bronnikov Committed by Kirill Yukhin
Browse files

build: fix warnings on Clang 13+

Part of #6681
parent c9d18608
No related branches found
No related tags found
No related merge requests found
......@@ -253,6 +253,7 @@ crash_report_feedback_daemon(struct crash_info *cinfo)
char *head = p;
int total = 0;
(void)total;
int size = 0;
#define snprintf_safe(...) SNPRINT(total, snprintf, p, size, __VA_ARGS__)
......
......@@ -54,6 +54,7 @@ static int
sio_socketname_to_buffer(int fd, char *buf, int size)
{
int n = 0;
(void)n;
SNPRINT(n, snprintf, buf, size, "fd %d", fd);
if (fd < 0)
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment