File: compiler-gcc4.h

package info (click to toggle)
fio 3.12-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,488 kB
  • sloc: ansic: 65,165; sh: 3,284; python: 1,978; makefile: 657; yacc: 204; lex: 184
file content (17 lines) | stat: -rw-r--r-- 422 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef FIO_COMPILER_GCC4_H
#define FIO_COMPILER_GCC4_H

#ifndef __must_check
#define __must_check		__attribute__((warn_unused_result))
#endif

#define GCC_VERSION (__GNUC__ * 10000		\
			+ __GNUC_MINOR__ * 100	\
			+ __GNUC_PATCHLEVEL__)

#if GCC_VERSION >= 40300
#define __compiletime_warning(message)	__attribute__((warning(message)))
#define __compiletime_error(message)	__attribute__((error(message)))
#endif

#endif