mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
deprecation: add used attribute
Recent GCC enables `-Wunused-const-variables`, which makes output quite noisy. Disable unused warnings for our deprecated variables.
This commit is contained in:
@@ -59,6 +59,7 @@ typedef size_t size_t;
|
||||
#if defined(__GNUC__)
|
||||
# define GIT_DEPRECATED(func) \
|
||||
__attribute__((deprecated)) \
|
||||
__attribute__((used)) \
|
||||
func
|
||||
#elif defined(_MSC_VER)
|
||||
# define GIT_DEPRECATED(func) __declspec(deprecated) func
|
||||
|
||||
Reference in New Issue
Block a user