Cleanup: replace UNUSED macro with commented args in C++ code
This is the conventional way of dealing with unused arguments in C++, since it works on all compilers. Regex find and replace: `UNUSED\((\w+)\)` -> `/*$1*/`
This commit is contained in:
@@ -49,13 +49,13 @@ namespace blender::gpu::debug {
|
||||
# define APIENTRY
|
||||
#endif
|
||||
|
||||
static void APIENTRY debug_callback(GLenum UNUSED(source),
|
||||
static void APIENTRY debug_callback(GLenum /*source*/,
|
||||
GLenum type,
|
||||
GLuint UNUSED(id),
|
||||
GLuint /*id*/,
|
||||
GLenum severity,
|
||||
GLsizei UNUSED(length),
|
||||
GLsizei /*length*/,
|
||||
const GLchar *message,
|
||||
const GLvoid *UNUSED(userParm))
|
||||
const GLvoid * /*userParm*/)
|
||||
{
|
||||
if (ELEM(type, GL_DEBUG_TYPE_PUSH_GROUP, GL_DEBUG_TYPE_POP_GROUP)) {
|
||||
/* The debug layer will emit a message each time a debug group is pushed or popped.
|
||||
|
||||
Reference in New Issue
Block a user