mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-19 03:55:49 +00:00
Fix clang compile error. #297
This commit is contained in:
parent
1388e5190d
commit
cf54cc9f26
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#if defined(__GNUC__)
|
||||
#define ATTRIBUTE_UNUSED __attribute__((unused))
|
||||
#else
|
||||
#define ATTRIBUTE_UNUSED
|
||||
|
@ -82,7 +82,7 @@ struct IndexFile;
|
||||
::Reflect(visitor, value0); \
|
||||
value = static_cast<type>(value0); \
|
||||
} \
|
||||
inline void Reflect(Writer& visitor, type& value) { \
|
||||
ATTRIBUTE_UNUSED inline void Reflect(Writer& visitor, type& value) { \
|
||||
auto value0 = static_cast<as_type>(value); \
|
||||
::Reflect(visitor, value0); \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user