0005-GLUtils-cast-as-char-as-formatting-of-non-void-point.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. From 44b30c116682968bacf8aec566fc9c193026ecc9 Mon Sep 17 00:00:00 2001
  2. From: Rudi Heitbaum <rudi@heitbaum.com>
  3. Date: Wed, 6 Jul 2022 22:48:35 +1000
  4. Subject: [PATCH] GLUtils: cast as char as formatting of non-void pointers
  5. is disallowed
  6. Downloaded from upstream commit:
  7. https://github.com/xbmc/xbmc/commit/44b30c116682968bacf8aec566fc9c193026ecc9
  8. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  9. ---
  10. xbmc/utils/GLUtils.cpp | 10 +++++-----
  11. 1 file changed, 5 insertions(+), 5 deletions(-)
  12. diff --git a/xbmc/utils/GLUtils.cpp b/xbmc/utils/GLUtils.cpp
  13. index 1ef804709f..c36dcf6a20 100644
  14. --- a/xbmc/utils/GLUtils.cpp
  15. +++ b/xbmc/utils/GLUtils.cpp
  16. @@ -148,27 +148,27 @@ void _VerifyGLState(const char* szfile, const char* szfunction, int lineno)
  17. void LogGraphicsInfo()
  18. {
  19. #if defined(HAS_GL) || defined(HAS_GLES)
  20. - const GLubyte *s;
  21. + const char* s;
  22. - s = glGetString(GL_VENDOR);
  23. + s = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
  24. if (s)
  25. CLog::Log(LOGINFO, "GL_VENDOR = %s", s);
  26. else
  27. CLog::Log(LOGINFO, "GL_VENDOR = NULL");
  28. - s = glGetString(GL_RENDERER);
  29. + s = reinterpret_cast<const char*>(glGetString(GL_RENDERER));
  30. if (s)
  31. CLog::Log(LOGINFO, "GL_RENDERER = %s", s);
  32. else
  33. CLog::Log(LOGINFO, "GL_RENDERER = NULL");
  34. - s = glGetString(GL_VERSION);
  35. + s = reinterpret_cast<const char*>(glGetString(GL_VERSION));
  36. if (s)
  37. CLog::Log(LOGINFO, "GL_VERSION = %s", s);
  38. else
  39. CLog::Log(LOGINFO, "GL_VERSION = NULL");
  40. - s = glGetString(GL_SHADING_LANGUAGE_VERSION);
  41. + s = reinterpret_cast<const char*>(glGetString(GL_SHADING_LANGUAGE_VERSION));
  42. if (s)
  43. CLog::Log(LOGINFO, "GL_SHADING_LANGUAGE_VERSION = %s", s);
  44. else
  45. --
  46. 2.30.2