OSDN Git Service

Disable -Wcast-calling-convention for vulkan
authorPirama Arumuga Nainar <pirama@google.com>
Tue, 28 Jun 2016 21:45:29 +0000 (14:45 -0700)
committerStephen Hines <srhines@google.com>
Wed, 20 Jul 2016 00:29:00 +0000 (00:29 +0000)
commitd2c942f42a6fdee882bf1a9d7e0835c4c51d094e
treefa0c9745f36b2039a3735f94921c534509da1ca3
parent0079a59c43db8d001c9e2174ec10984a108fef03
Disable -Wcast-calling-convention for vulkan

The following warning is triggered by the upcoming Clang update to
r271374:

frameworks/native/vulkan/libvulkan/stubhal.cpp:114:12: error: cast
between incompatible calling conventions 'cdecl' and 'aapcs-vfp'; calls
through thispointer may abort at runtime
[-Werror,-Wcast-calling-convention]
    return reinterpret_cast<PFN_vkVoidFunction>(NoOp);

Change-Id: I8de75fd6a3b579a91598aebbdd23bf74b57c3593
(cherry picked from commit b4c0eb1d203f88f0ef9ef9c360c03bcbb3e90efc)
vulkan/libvulkan/Android.mk