Blender V5.0
device/cpu/compat.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#pragma once
6
7/* Release kernel has too much false-positive maybe-uninitialized warnings,
8 * which makes it possible to miss actual warnings.
9 */
10#if (defined(__GNUC__) && !defined(__clang__)) && defined(NDEBUG)
11# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
12# pragma GCC diagnostic ignored "-Wuninitialized"
13#endif
14
16
17/* Assertions inside the kernel only work for the CPU device, so we wrap it in
18 * a macro which is empty for other devices */
19
20#define kernel_assert(cond) assert(cond)
21
#define CCL_NAMESPACE_END