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