Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d75ab45 authored by Len Brown's avatar Len Brown
Browse files

[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: default avatarLen Brown <len.brown@intel.com>
parent feee9570
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.