remove WEBP_FORCE_ALIGNED and use memcpy() instead.

BUG=webp:297

Change-Id: I89a08debec7bb1b3f411c897260ab1bb63f77df2
This commit is contained in:
Pascal Massimino
2016-08-17 12:09:53 -07:00
committed by James Zern
parent 005e15b10a
commit 3884972e3f
6 changed files with 5 additions and 38 deletions

View File

@ -111,8 +111,7 @@ extern "C" {
#define WEBP_UBSAN_IGNORE_UNDEF
#define WEBP_UBSAN_IGNORE_UNSIGNED_OVERFLOW
#if !defined(WEBP_FORCE_ALIGNED) && defined(__clang__) && \
defined(__has_attribute)
#if defined(__clang__) && defined(__has_attribute)
#if __has_attribute(no_sanitize)
// This macro prevents the undefined behavior sanitizer from reporting
// failures. This is only meant to silence unaligned loads on platforms that