From 9d96147bbf8dabc2a28105d73905808e70b73b0f Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Sat, 2 Jun 2018 20:53:30 +0200 Subject: Fix "catching polymorphic type" errors with newest gcc --- tools/preproc/asm_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/preproc/asm_file.cpp') diff --git a/tools/preproc/asm_file.cpp b/tools/preproc/asm_file.cpp index bb296b78b..383010aa3 100644 --- a/tools/preproc/asm_file.cpp +++ b/tools/preproc/asm_file.cpp @@ -266,7 +266,7 @@ int AsmFile::ReadString(unsigned char* s) { m_pos += stringParser.ParseString(m_pos, s, length); } - catch (std::runtime_error e) + catch (std::runtime_error& e) { RaiseError(e.what()); } -- cgit v1.2.3