From: Dan Horák Date: Fri, 23 Mar 2018 20:33:18 +0000 (+0100) Subject: fix catching polymorphic types by value X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=30677c1392b54604b01558cf29b44572731659fc;hp=30677c1392b54604b01558cf29b44572731659fc;p=pulseview.git fix catching polymorphic types by value Compiling with GCC 8 produces a new warning about catching polymorphic types by value. Proper way is to use references instead. /home/sharkcz/projects/pulseview/main.cpp: In function ‘int main(int, char**)’: /home/sharkcz/projects/pulseview/main.cpp:229:22: error: catching polymorphic type ‘class std::exception’ by value [-Werror=catch-value=] } catch (exception e) { ^ cc1plus: all warnings being treated as errors ---