Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: third_party/qcms/src/transform.c

Issue 11360238: Fix chrome/arm build warnings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« build/common.gypi ('K') | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/qcms/src/transform.c
diff --git a/third_party/qcms/src/transform.c b/third_party/qcms/src/transform.c
index 44ce9b5631f047866ae69c21e8c8ec8cdeb6ebaa..fdab82cbfe0da31c0f7e2240183711ee48c07cb8 100644
--- a/third_party/qcms/src/transform.c
+++ b/third_party/qcms/src/transform.c
@@ -1323,19 +1323,9 @@ qcms_transform* qcms_transform_create(
return transform;
}
-#if defined(__GNUC__) && !defined(__x86_64__) && !defined(__amd64__)
-#if !defined(__has_attribute)
-/* Assume that the compiler supports the provided attribute. */
-#define __has_attribute(x) 1
-#endif
-#if __has_attribute(__force_align_arg_pointer__)
+#if defined(__GNUC__) && !defined(__x86_64__) && !defined(__amd64__) && !defined(__arm__)
Nico 2012/11/13 22:53:49 Instead of removing all the __has_attribute stuff,
Sam Clegg 2012/11/13 23:24:46 You mean have __has_attribute() default to 0 when
Nico 2012/11/13 23:29:01 It has the advantage that it asks the compiler if
/* we need this to avoid crashes when gcc assumes the stack is 128bit aligned */
__attribute__((__force_align_arg_pointer__))
-#else
-/* __force_align_arg_pointer__ is an x86-only attribute, and clang warns on used
- * attributes. Don't use this on ARM.
- */
-#endif
#endif
void qcms_transform_data(qcms_transform *transform, void *src, void *dest, size_t length)
{
« build/common.gypi ('K') | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698