tree d41ed3444f7555f5694fdecd52e3f143e1363dc5
parent feee9570753645f9f6888937ff9aee426b7afe55
author Len Brown <[EMAIL PROTECTED]> Fri, 29 Jul 2005 08:03:55 -0400
committer Len Brown <[EMAIL PROTECTED]> Fri, 29 Jul 2005 08:08:42 -0400

[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 <[EMAIL PROTECTED]>

 include/acpi/platform/acgcc.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/acpi/platform/acgcc.h b/include/acpi/platform/acgcc.h
--- a/include/acpi/platform/acgcc.h
+++ b/include/acpi/platform/acgcc.h
@@ -46,7 +46,7 @@
 
 /* Function name is used for debug output. Non-ANSI, compiler-dependent */
 
-#define ACPI_GET_FUNCTION_NAME          __FUNCTION__
+#define ACPI_GET_FUNCTION_NAME          (char *) __FUNCTION__
 
 /* This macro is used to tag functions as "printf-like" because
  * some compilers (like GCC) can catch printf format string problems.
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to