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