Skip to content

Commit

Permalink
Merge pull request #23 from DUNE-DAQ/dingpf/fix_compiler_warning
Browse files Browse the repository at this point in the history
set destructor to public, and remove () when initializing object with…
  • Loading branch information
dingp authored Mar 17, 2023
2 parents 8bd2fac + 0bdcfee commit 99fbdcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/apps/exception_example.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ where <num> is a number: 0 - 6.

class XX
{
public:
~XX() { TLOG_DEBUG(1) << "dtor object after raise/throw"; }
};

void foo( int except_int )
{
XX xx();
XX xx;
switch( except_int ) {
case 0: {
TLOG_DEBUG(1) << "raising ers::PermissionDenied " << "somefilename";
Expand Down

0 comments on commit 99fbdcb

Please sign in to comment.