forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gcc-attr.h
26 lines (22 loc) · 841 Bytes
/
gcc-attr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
* Copyright (c) 1998-2003, Darren Hiebert
*
* This source code is released for free distribution under the terms of the
* GNU General Public License version 2 or (at your option) any later version.
*/
/* This is derived from general.h.
Only readtags related source file should include this.
ctags related source file should include genera.h instead. */
#ifndef CTAGS_MAIN_GCC_ATTR_H
#define CTAGS_MAIN_GCC_ATTR_H
/* Prevent warnings about unused variables in GCC. */
#if defined (__GNUC__) && !defined (__GNUG__)
# define CTAGS_ATTR_UNUSED __attribute__((unused))
# define CTAGS_ATTR_PRINTF(s,f) __attribute__((format (printf, s, f)))
# define attr__noreturn __attribute__((__noreturn__))
#else
# define CTAGS_ATTR_UNUSED
# define CTAGS_ATTR_PRINTF(s,f)
# define attr__noreturn
#endif
#endif /* CTAGS_MAIN_GCC_ATTR_H */