acgcc.h (7c478bd9) | acgcc.h (450d6964) |
---|---|
1/****************************************************************************** 2 * 3 * Name: acgcc.h - GCC specific defines, etc. | 1/****************************************************************************** 2 * 3 * Name: acgcc.h - GCC specific defines, etc. |
4 * $Revision: 27 $ | 4 * $Revision: 29 $ |
5 * 6 *****************************************************************************/ 7 8/****************************************************************************** 9 * 10 * 1. Copyright Notice 11 * 12 * Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp. --- 99 unchanged lines hidden (view full) --- 112 * other governmental approval, or letter of assurance, without first obtaining 113 * such license, approval or letter. 114 * 115 *****************************************************************************/ 116 117#ifndef __ACGCC_H__ 118#define __ACGCC_H__ 119 | 5 * 6 *****************************************************************************/ 7 8/****************************************************************************** 9 * 10 * 1. Copyright Notice 11 * 12 * Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp. --- 99 unchanged lines hidden (view full) --- 112 * other governmental approval, or letter of assurance, without first obtaining 113 * such license, approval or letter. 114 * 115 *****************************************************************************/ 116 117#ifndef __ACGCC_H__ 118#define __ACGCC_H__ 119 |
120/* Function name is used for debug output. Non-ANSI, compiler-dependent */ 121 122#define ACPI_GET_FUNCTION_NAME __FUNCTION__ 123 |
|
120/* This macro is used to tag functions as "printf-like" because 121 * some compilers (like GCC) can catch printf format string problems. 122 */ | 124/* This macro is used to tag functions as "printf-like" because 125 * some compilers (like GCC) can catch printf format string problems. 126 */ |
123#define ACPI_PRINTF_LIKE_FUNC __attribute__ ((__format__ (__printf__, 4, 5))) | 127#define ACPI_PRINTF_LIKE_FUNC __attribute__ ((__format__ (__printf__, 6, 7))) |
124 125/* Some compilers complain about unused variables. Sometimes we don't want to | 128 129/* Some compilers complain about unused variables. Sometimes we don't want to |
126 * use all the variables (most specifically for _THIS_MODULE). This allow us | 130 * use all the variables (for example, _AcpiModuleName). This allows us |
127 * to to tell the compiler warning in a per-variable manner that a variable 128 * is unused. 129 */ 130#define ACPI_UNUSED_VAR __attribute__ ((unused)) 131 132#endif /* __ACGCC_H__ */ | 131 * to to tell the compiler warning in a per-variable manner that a variable 132 * is unused. 133 */ 134#define ACPI_UNUSED_VAR __attribute__ ((unused)) 135 136#endif /* __ACGCC_H__ */ |