Silence -Wformat-nonliteral warning with clang.

This commit is contained in:
Juan RP 2013-01-04 10:35:00 +01:00
parent a4e3a489a1
commit ea2f2c7297
6 changed files with 24 additions and 0 deletions

View File

@ -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 {

View File

@ -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

View File

@ -33,6 +33,10 @@
#include "defs.h"
#ifdef __clang__
#pragma clang diagnostic ignored "-Wformat-nonliteral"
#endif
static char *
strtrim(char *str)
{

View File

@ -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,

View File

@ -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

View File

@ -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