Silence -Wformat-nonliteral warning with clang.
This commit is contained in:
parent
a4e3a489a1
commit
ea2f2c7297
@ -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)
|
||||
{
|
||||
|
@ -40,6 +40,10 @@
|
||||
|
||||
#include "xbps_api_impl.h"
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wformat-nonliteral"
|
||||
#endif
|
||||
|
||||
void HIDDEN
|
||||
xbps_set_cb_fetch(struct xbps_handle *xhp,
|
||||
off_t file_size,
|
||||
|
@ -34,6 +34,10 @@
|
||||
|
||||
#include "xbps_api_impl.h"
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wformat-nonliteral"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @file lib/initend.c
|
||||
* @brief Initialization and finalization routines
|
||||
|
@ -41,6 +41,10 @@
|
||||
#endif
|
||||
#include "xbps_api_impl.h"
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wformat-nonliteral"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @file lib/util.c
|
||||
* @brief Utility routines
|
||||
|
Loading…
Reference in New Issue
Block a user