acgcc.h (c203e45f069af47ca7623e4dcd8c00bfba2722e4) acgcc.h (d5c003b4d1690e666dbab02bc8e705947baa848c)
1/******************************************************************************
2 *
3 * Name: acgcc.h - GCC specific defines, etc.
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2008, Intel Corp.

--- 32 unchanged lines hidden (view full) ---

41 * POSSIBILITY OF SUCH DAMAGES.
42 */
43
44#ifndef __ACGCC_H__
45#define __ACGCC_H__
46
47/* Function name is used for debug output. Non-ANSI, compiler-dependent */
48
1/******************************************************************************
2 *
3 * Name: acgcc.h - GCC specific defines, etc.
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2008, Intel Corp.

--- 32 unchanged lines hidden (view full) ---

41 * POSSIBILITY OF SUCH DAMAGES.
42 */
43
44#ifndef __ACGCC_H__
45#define __ACGCC_H__
46
47/* Function name is used for debug output. Non-ANSI, compiler-dependent */
48
49#define ACPI_GET_FUNCTION_NAME __FUNCTION__
49#define ACPI_GET_FUNCTION_NAME __func__
50
51/*
52 * This macro is used to tag functions as "printf-like" because
53 * some compilers (like GCC) can catch printf format string problems.
54 */
55#define ACPI_PRINTF_LIKE(c) __attribute__ ((__format__ (__printf__, c, c+1)))
56
57/*
58 * Some compilers complain about unused variables. Sometimes we don't want to
59 * use all the variables (for example, _acpi_module_name). This allows us
60 * to to tell the compiler warning in a per-variable manner that a variable
61 * is unused.
62 */
63#define ACPI_UNUSED_VAR __attribute__ ((unused))
64
65#endif /* __ACGCC_H__ */
50
51/*
52 * This macro is used to tag functions as "printf-like" because
53 * some compilers (like GCC) can catch printf format string problems.
54 */
55#define ACPI_PRINTF_LIKE(c) __attribute__ ((__format__ (__printf__, c, c+1)))
56
57/*
58 * Some compilers complain about unused variables. Sometimes we don't want to
59 * use all the variables (for example, _acpi_module_name). This allows us
60 * to to tell the compiler warning in a per-variable manner that a variable
61 * is unused.
62 */
63#define ACPI_UNUSED_VAR __attribute__ ((unused))
64
65#endif /* __ACGCC_H__ */