Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 5ff3794

Browse files
committed
include: Define ATTRIBUTE_UNUSED for clang
Silences warnings under clang on Windows.
1 parent aaa24ca commit 5ff3794

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/libxml/xmlexports.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*/
4343

4444
#ifndef ATTRIBUTE_UNUSED
45-
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 207
45+
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 207 || defined(__clang__)
4646
#define ATTRIBUTE_UNUSED __attribute__((unused))
4747
#else
4848
#define ATTRIBUTE_UNUSED

0 commit comments

Comments
 (0)