From b9b80b48b722748dcfa7aaac7d0a72f16354966b Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Tue, 27 May 2014 00:05:41 -0500 Subject: [PATCH] change to fatal error in kicad/kicad.cpp Kiface() stub. --- kicad/kicad.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kicad/kicad.cpp b/kicad/kicad.cpp index 5b696f5715..693c0cfa8f 100644 --- a/kicad/kicad.cpp +++ b/kicad/kicad.cpp @@ -79,7 +79,11 @@ static void set_lib_env_var( const wxString& aAbsoluteArgv0 ) #include KIFACE_I& Kiface() { - wxASSERT( 0 ); // should never be called, only reference is from EDA_BASE_FRAME::config(); + // This function should never be called. It is only referenced from + // EDA_BASE_FRAME::config() and this is only provided to satisfy the linker, + // not to be actually called. + wxLogFatalError( wxT( "Unexpected call to Kiface() in kicad/kicad.cpp" ) ); + return (KIFACE_I&) *(KIFACE_I*) 0; }