yuzu/src/video_core/renderer_opengl
comex d637114c17 video_core: Adjust NUM macro to avoid Clang warning
The previous definition was:

    #define NUM(field_name) (sizeof(Maxwell3D::Regs::field_name) / sizeof(u32))

In cases where `field_name` happens to refer to an array, Clang thinks
`sizeof(an array value) / sizeof(a type)` is an instance of the idiom
where `sizeof` is used to compute an array length.  So it thinks the
type in the denominator ought to be the array element type, and warns if
it isn't, assuming this is a mistake.

In reality, `NUM` is not used to get array lengths at all, so there is no
mistake.  Silence the warning by applying Clang's suggested workaround
of parenthesizing the denominator.
2020-12-06 18:24:16 -05:00
..
gl_arb_decompiler.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_arb_decompiler.h
gl_buffer_cache.cpp
gl_buffer_cache.h
gl_device.cpp
gl_device.h
gl_fence_manager.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_fence_manager.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_framebuffer_cache.cpp
gl_framebuffer_cache.h
gl_query_cache.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_query_cache.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_rasterizer.cpp
gl_rasterizer.h
gl_resource_manager.cpp
gl_resource_manager.h
gl_sampler_cache.cpp
gl_sampler_cache.h
gl_shader_cache.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_shader_cache.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_shader_decompiler.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_shader_decompiler.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_shader_disk_cache.cpp
gl_shader_disk_cache.h
gl_shader_manager.cpp
gl_shader_manager.h
gl_shader_util.cpp
gl_shader_util.h
gl_state_tracker.cpp video_core: Adjust NUM macro to avoid Clang warning 2020-12-06 18:24:16 -05:00
gl_state_tracker.h
gl_stream_buffer.cpp
gl_stream_buffer.h
gl_texture_cache.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_texture_cache.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
maxwell_to_gl.h
renderer_opengl.cpp Fix telemetry-related exit crash from use-after-free 2020-12-05 02:42:50 +01:00
renderer_opengl.h
utils.cpp
utils.h