mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-24 21:33:51 +03:00
include: Don't define ATTRIBUTE_UNUSED in public header
Stop polluting namespace with unprefixed names.
This commit is contained in:
parent
387f0c784f
commit
208f27f964
@ -177,7 +177,7 @@ typedef struct gjob {
|
|||||||
|
|
||||||
|
|
||||||
static gJobPtr
|
static gJobPtr
|
||||||
parseGjobFile(char *filename ATTRIBUTE_UNUSED) {
|
parseGjobFile(char *filename) {
|
||||||
xmlDocPtr doc;
|
xmlDocPtr doc;
|
||||||
gJobPtr ret;
|
gJobPtr ret;
|
||||||
jobPtr curjob;
|
jobPtr curjob;
|
||||||
|
@ -15,6 +15,12 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 207
|
||||||
|
#define ATTRIBUTE_UNUSED __attribute__((unused))
|
||||||
|
#else
|
||||||
|
#define ATTRIBUTE_UNUSED
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(LIBXML_HTML_ENABLED)
|
#if defined(LIBXML_HTML_ENABLED)
|
||||||
#define HAVE_HTML_FUZZER
|
#define HAVE_HTML_FUZZER
|
||||||
#endif
|
#endif
|
||||||
|
@ -41,12 +41,6 @@
|
|||||||
* Attributes
|
* Attributes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 207
|
|
||||||
#define ATTRIBUTE_UNUSED __attribute__((unused))
|
|
||||||
#else
|
|
||||||
#define ATTRIBUTE_UNUSED
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(__clang__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 403)
|
#if !defined(__clang__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 403)
|
||||||
#define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
|
#define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
|
||||||
#else
|
#else
|
||||||
|
6
libxml.h
6
libxml.h
@ -47,6 +47,12 @@
|
|||||||
#define XML_HIDDEN
|
#define XML_HIDDEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 207
|
||||||
|
#define ATTRIBUTE_UNUSED __attribute__((unused))
|
||||||
|
#else
|
||||||
|
#define ATTRIBUTE_UNUSED
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__clang__) || \
|
#if defined(__clang__) || \
|
||||||
(defined(__GNUC__) && (__GNUC__ >= 8) && !defined(__EDG__))
|
(defined(__GNUC__) && (__GNUC__ >= 8) && !defined(__EDG__))
|
||||||
#define ATTRIBUTE_NO_SANITIZE(arg) __attribute__((no_sanitize(arg)))
|
#define ATTRIBUTE_NO_SANITIZE(arg) __attribute__((no_sanitize(arg)))
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* daniel@veillard.com
|
* daniel@veillard.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "libxml.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* daniel@veillard.com
|
* daniel@veillard.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "libxml.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <libxml/xmlversion.h>
|
#include <libxml/xmlversion.h>
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
* joelwreed@comcast.net
|
* joelwreed@comcast.net
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libxml.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <libxml/xmlversion.h>
|
#include <libxml/xmlversion.h>
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/* Disable deprecation warnings */
|
/* Disable deprecation warnings */
|
||||||
#define XML_DEPRECATED
|
#define XML_DEPRECATED
|
||||||
|
|
||||||
#include "config.h"
|
#include "libxml.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
* daniel@veillard.com
|
* daniel@veillard.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libxml.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* See Copyright for the status of this software.
|
* See Copyright for the status of this software.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libxml.h"
|
||||||
#include <libxml/parser.h>
|
#include <libxml/parser.h>
|
||||||
#include <libxml/xmlreader.h>
|
#include <libxml/xmlreader.h>
|
||||||
#include <libxml/xmlwriter.h>
|
#include <libxml/xmlwriter.h>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#define XML_DEPRECATED_MEMBER
|
#define XML_DEPRECATED_MEMBER
|
||||||
|
|
||||||
#include "config.h"
|
#include "libxml.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user