diff options
author | Bob Moore <robert.moore@intel.com> | 2010-01-20 20:08:31 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2010-01-22 12:30:02 -0500 |
commit | 2147d3f00f85c9e993786863d8138694672da01b (patch) | |
tree | 446fe7d97ded336fbc5c8d8cad9ad87b959a6588 /include | |
parent | 92dcffb916d309aa01778bf8963a6932e4014d07 (diff) |
ACPICA: Update for new gcc-4 warning options
Added several new options for the gcc-4 generation, and updated
the source accordingly. This includes some code restructuring to
eliminate unreachable code, elimination of some gotos, elimination
of unused return values, and some additional casting.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/acpi/platform/acenv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h index e62f10d9a7d8..fa7689a6fc4b 100644 --- a/include/acpi/platform/acenv.h +++ b/include/acpi/platform/acenv.h | |||
@@ -311,8 +311,8 @@ typedef char *va_list; | |||
311 | #define ACPI_MEMCMP(s1,s2,n) acpi_ut_memcmp((const char *)(s1), (const char *)(s2), (acpi_size)(n)) | 311 | #define ACPI_MEMCMP(s1,s2,n) acpi_ut_memcmp((const char *)(s1), (const char *)(s2), (acpi_size)(n)) |
312 | #define ACPI_MEMCPY(d,s,n) (void) acpi_ut_memcpy ((d), (s), (acpi_size)(n)) | 312 | #define ACPI_MEMCPY(d,s,n) (void) acpi_ut_memcpy ((d), (s), (acpi_size)(n)) |
313 | #define ACPI_MEMSET(d,v,n) (void) acpi_ut_memset ((d), (v), (acpi_size)(n)) | 313 | #define ACPI_MEMSET(d,v,n) (void) acpi_ut_memset ((d), (v), (acpi_size)(n)) |
314 | #define ACPI_TOUPPER acpi_ut_to_upper | 314 | #define ACPI_TOUPPER(c) acpi_ut_to_upper ((int) (c)) |
315 | #define ACPI_TOLOWER acpi_ut_to_lower | 315 | #define ACPI_TOLOWER(c) acpi_ut_to_lower ((int) (c)) |
316 | 316 | ||
317 | #endif /* ACPI_USE_SYSTEM_CLIBRARY */ | 317 | #endif /* ACPI_USE_SYSTEM_CLIBRARY */ |
318 | 318 | ||