Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/BLI_system.h1
-rw-r--r--source/blender/gpu/intern/gpu_debug.c5
2 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/blenlib/BLI_system.h b/source/blender/blenlib/BLI_system.h
index cb8cb6f5a0d..92403eb7dea 100644
--- a/source/blender/blenlib/BLI_system.h
+++ b/source/blender/blenlib/BLI_system.h
@@ -28,6 +28,7 @@
int BLI_cpu_support_sse2(void);
#if defined(NDEBUG) || !defined(__BLI_UTILDEFINES_H__)
+#include <stdio.h>
void BLI_system_backtrace(FILE *fp);
#endif
diff --git a/source/blender/gpu/intern/gpu_debug.c b/source/blender/gpu/intern/gpu_debug.c
index 8d1ab43288a..af69c2fca36 100644
--- a/source/blender/gpu/intern/gpu_debug.c
+++ b/source/blender/gpu/intern/gpu_debug.c
@@ -30,6 +30,7 @@
*/
#include "BLI_sys_types.h"
+#include "BLI_system.h"
#include "BKE_global.h"
@@ -43,10 +44,6 @@
#define CASE_CODE_RETURN_STR(code) case code: return #code;
-#if (defined(__GNUC__) && !defined(__clang__)) && defined(NDEBUG)
-# pragma GCC diagnostic ignored "-Wimplicit-function-declaration"
-#endif
-
static const char *gpu_gl_error_symbol(GLenum err)
{
switch (err) {