diff options
author | James Buren <ryuo@ryuo.xyz> | 2019-03-01 19:21:48 +0100 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2019-03-01 19:21:48 +0100 |
commit | 4b6998eade482b3cd10182bedd9faa66250b4cb6 (patch) | |
tree | 9fec358d452acdc0af8a70e757c1de299df044c4 | |
parent | 2fd99a3c8fc5c75e28af71ac35472f6fe8908d37 (diff) | |
download | prt-get-4b6998eade482b3cd10182bedd9faa66250b4cb6.tar.gz prt-get-4b6998eade482b3cd10182bedd9faa66250b4cb6.tar.xz |
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
-rw-r--r-- | src/prtget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; } /*! |