← Back to team overview

kicad-developers team mailing list archive

[PATCH 4/4] Fix signature of dummy Pgm() function

 

---
 utils/kicad-ogltest/kicad-ogltest.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/utils/kicad-ogltest/kicad-ogltest.cpp b/utils/kicad-ogltest/kicad-ogltest.cpp
index eb0a8cba7..7c3415f0c 100644
--- a/utils/kicad-ogltest/kicad-ogltest.cpp
+++ b/utils/kicad-ogltest/kicad-ogltest.cpp
@@ -30,6 +30,7 @@
 #include <wx/frame.h>
 #include <wx/regex.h>
 #include <gal/opengl/opengl_gal.h>
+#include <pgm_base.h>
 #include <iostream>
 
 // Required OpenGL version
@@ -40,8 +41,10 @@ static wxRegEx OGLVersionRegex( R"(^(\d+)\.(\d+))", wxRE_ADVANCED );
 
 static const int glAttributes[] = { WX_GL_RGBA, WX_GL_DOUBLEBUFFER, WX_GL_DEPTH_SIZE, 8, 0 };
 
-
-void Pgm() {}
+PGM_BASE& Pgm()
+{
+    throw std::logic_error("Dummy function called");
+}
 
 
 class OGLTEST_APP : public wxApp

References