Get rid of compiler warnings about unused getEglErrorString()

This commit is contained in:
Vlad Zahorodnii 2023-03-14 10:25:55 +02:00
parent d6309eb605
commit 8eaebe5b7d

View file

@ -11,7 +11,7 @@
#include <QString>
#include <epoxy/egl.h>
static QString getEglErrorString(EGLint errorCode)
static inline QString getEglErrorString(EGLint errorCode)
{
switch (errorCode) {
case EGL_SUCCESS:
@ -49,7 +49,7 @@ static QString getEglErrorString(EGLint errorCode)
}
}
static QString getEglErrorString()
static inline QString getEglErrorString()
{
return getEglErrorString(eglGetError());
}