Fix warning about creation of null reference
This is a code path that should never run.
This commit is contained in:
parent
5f303f7b25
commit
74dfe80e21
|
@ -2,7 +2,7 @@
|
|||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2004-2015 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||
* Copyright (C) 2004-2015 KiCad Developers, see change_log.txt for contributors.
|
||||
* Copyright (C) 2004-2017 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -38,6 +38,7 @@
|
|||
#include <kiway.h>
|
||||
#include <richio.h>
|
||||
#include <wildcards_and_files_ext.h>
|
||||
#include <stdexcept>
|
||||
|
||||
#include "pgm_kicad.h"
|
||||
|
||||
|
@ -53,7 +54,7 @@ KIFACE_I& Kiface()
|
|||
// not to be actually called.
|
||||
wxLogFatalError( wxT( "Unexpected call to Kiface() in kicad/kicad.cpp" ) );
|
||||
|
||||
return (KIFACE_I&) *(KIFACE_I*) 0;
|
||||
throw std::logic_error( "Unexpected call to Kiface() in kicad/kicad.cpp" );
|
||||
}
|
||||
|
||||
static PGM_KICAD program;
|
||||
|
|
Loading…
Reference in New Issue