Silence -Wformat-nonliteral warning with clang.
This commit is contained in:
@@ -42,6 +42,10 @@
|
||||
#include <xbps_api.h>
|
||||
#include "queue.h"
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wformat-nonliteral"
|
||||
#endif
|
||||
|
||||
#define _PROGNAME "xbps-create"
|
||||
|
||||
struct xentry {
|
||||
|
||||
@@ -34,6 +34,10 @@
|
||||
|
||||
#include <xbps_api.h>
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wformat-nonliteral"
|
||||
#endif
|
||||
|
||||
#ifndef __arraycount
|
||||
# define __arraycount(a) (sizeof(a) / sizeof(*(a)))
|
||||
#endif
|
||||
|
||||
@@ -33,6 +33,10 @@
|
||||
|
||||
#include "defs.h"
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wformat-nonliteral"
|
||||
#endif
|
||||
|
||||
static char *
|
||||
strtrim(char *str)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user