The NDEBUG is a toggle define, and in debug builds it is not defined. This change solves the warning mtl_context.mm:2282:5: warning: 'NDEBUG' is not defined, evaluates to 0 [-Wundef] Pull Request: https://projects.blender.org/blender/blender/pulls/112504