Skip to content

Commit

Permalink
[ACPI] handle const char * __FUNCTION__ in debug code
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
lenb committed Jul 29, 2005
1 parent feee957 commit 5d75ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/acpi/platform/acgcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5d75ab4

Please sign in to comment.