1 /* 2 * Copyright (c) Meta Platforms, Inc. and affiliates. 3 * All rights reserved. 4 * 5 * This source code is licensed under the BSD-style license found in the 6 * LICENSE file in the root directory of this source tree. 7 */ 8 9 #pragma once 10 11 // Suppress an unused variable. Copied from [[maybe_unused]] 12 #if defined(_MSC_VER) && !defined(__clang__) 13 #define VK_UNUSED __pragma(warning(suppress : 4100 4101)) 14 #else 15 #define VK_UNUSED __attribute__((__unused__)) 16 #endif //_MSC_VER 17