Skip to content

Commit c115bac

Browse files
committed
DPL: fix warnings
1 parent 5f631f7 commit c115bac

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

Framework/Core/src/ChannelSpecHelpers.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// or submit itself to any jurisdiction.
1010
#include "ChannelSpecHelpers.h"
1111
#include <ostream>
12+
#include <cassert>
1213

1314
namespace o2
1415
{
@@ -37,6 +38,7 @@ char const* ChannelSpecHelpers::methodAsString(enum ChannelMethod method)
3738
case ChannelMethod::Connect:
3839
return "connect";
3940
}
41+
assert(false);
4042
}
4143

4244
char const* ChannelSpecHelpers::methodAsUrl(enum ChannelMethod method)

Framework/Core/src/CompletionPolicyHelpers.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
#include <gsl/span>
1818

19+
#include <cassert>
20+
1921
namespace o2
2022
{
2123
namespace framework
@@ -42,6 +44,7 @@ CompletionPolicy CompletionPolicyHelpers::defineByName(std::string const&name, C
4244
return CompletionPolicy{"always-discard", matcher, callback };
4345
break;
4446
}
47+
assert(false);
4548
}
4649

4750
CompletionPolicy CompletionPolicyHelpers::consumeWhenAll() {

Framework/DebugGUI/src/imgui_extras.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "imgui.h"
55
#include "imgui_internal.h"
66

7+
#include <cassert>
78
#include <iostream>
89
#include <tuple>
910
#include <vector>
@@ -266,6 +267,7 @@ static void PlotMultiEx(
266267
case ValueScale::LOG:
267268
return log(v);
268269
}
270+
assert(false);
269271
};
270272

271273
float hoveredBinPos = (float)(v_hovered) / (float)(item_count);

0 commit comments

Comments
 (0)