From 4b6998eade482b3cd10182bedd9faa66250b4cb6 Mon Sep 17 00:00:00 2001 From: James Buren Date: Fri, 1 Mar 2019 19:21:48 +0100 Subject: fix compile warning and segfault caused by a missing return statement we had the following compile warning: prt-get.cpp: In member function 'virtual SignalHandler::HandlerResult PrtGet::handleSignal(int)': prtget.cpp:1628:1: warning: no return statement in function returning non-void [-Wreturn-type] } which leads to a segfault if we compile prt-get with optimalization, e.g. -O2, and interrupt prt-get with ^C --- src/prtget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/prtget.cpp b/src/prtget.cpp index 5e5bdc3..6095607 100644 --- a/src/prtget.cpp +++ b/src/prtget.cpp @@ -1628,6 +1628,8 @@ SignalHandler::HandlerResult PrtGet::handleSignal( int signal ) if ( m_currentTransaction ) { evaluateResult( *m_currentTransaction, false, true ); } + + return EXIT; } /*! -- cgit v1.2.3