From 2c77dbb976071c5185fca4ab475e72a2975b3993 Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Mon, 11 Apr 2016 11:43:08 -0700 Subject: [PATCH] disable unused argument warning for clang builds. normally this warning is disabled but for nacl builds that use clang its not. this CL makes the option universally disabled for all clang based builds. BUG=libyuv:581 TESTED=native_client/build/gyp_nacl all.gyp -Dgtest_target_type=executable -Dmsan=0 & ninja -C out/Debug libyuv R=kjellander@chromium.org Review URL: https://codereview.chromium.org/1865183002 . --- libyuv.gyp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libyuv.gyp b/libyuv.gyp index 444b14499..ed7c40c7c 100644 --- a/libyuv.gyp +++ b/libyuv.gyp @@ -47,6 +47,12 @@ # Allows libyuv.a redistributable library without external dependencies. 'standalone_static_library': 1, 'conditions': [ + # Disable -Wunused-parameter + ['clang == 1', { + 'cflags': [ + '-Wno-unused-parameter', + ], + }], ['build_neon != 0', { 'defines': [ 'LIBYUV_NEON',