aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi/platform/acgcc.h
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2005-07-29 00:03:55 -0400
committerLen Brown <len.brown@intel.com>2005-07-29 00:08:42 -0400
commit5d75ab45594c78d2d976a3248ea1ca281c9d7056 (patch)
treed41ed3444f7555f5694fdecd52e3f143e1363dc5 /include/acpi/platform/acgcc.h
parentfeee9570753645f9f6888937ff9aee426b7afe55 (diff)
[ACPI] handle const char * __FUNCTION__ in debug code
build warning: discards qualifiers from pointer target type when mixing "const char *" and "char *" We should probably update the routines to expect const, but easier for now to shut up the warning with 1 cast. Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/platform/acgcc.h')
-rw-r--r--include/acpi/platform/acgcc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/acpi/platform/acgcc.h b/include/acpi/platform/acgcc.h
index 39264127574c..e410e3b61415 100644
--- a/include/acpi/platform/acgcc.h
+++ b/include/acpi/platform/acgcc.h
@@ -46,7 +46,7 @@
46 46
47/* Function name is used for debug output. Non-ANSI, compiler-dependent */ 47/* Function name is used for debug output. Non-ANSI, compiler-dependent */
48 48
49#define ACPI_GET_FUNCTION_NAME __FUNCTION__ 49#define ACPI_GET_FUNCTION_NAME (char *) __FUNCTION__
50 50
51/* This macro is used to tag functions as "printf-like" because 51/* This macro is used to tag functions as "printf-like" because
52 * some compilers (like GCC) can catch printf format string problems. 52 * some compilers (like GCC) can catch printf format string problems.