From 5d48d8a2f8ad9d7a3b876c8b91d16d4231012601 Mon Sep 17 00:00:00 2001 From: Simon Richter Date: Thu, 6 Apr 2017 03:00:54 +0200 Subject: [PATCH] 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 eb0a8cba73..7c3415f0c6 100644 --- a/utils/kicad-ogltest/kicad-ogltest.cpp +++ b/utils/kicad-ogltest/kicad-ogltest.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include // 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