aboutsummaryrefslogtreecommitdiffstats
path: root/fsa
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-07-24 09:35:58 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2017-07-24 09:35:58 +0000
commitbc58e5d7345217fa0fbfa0d9c577ee10c7bd94db (patch)
treee76c9d1daa7b18f9383200459afe40804af83dbf /fsa
parent737979601f25ace7e5444dd3c925329c5a0a8b6d (diff)
Add [[falltrhough]] for gcc 7
Diffstat (limited to 'fsa')
-rw-r--r--fsa/src/vespa/fsa/segmenter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/fsa/src/vespa/fsa/segmenter.cpp b/fsa/src/vespa/fsa/segmenter.cpp
index fdeba5c2bd7..3bcb3f1b489 100644
--- a/fsa/src/vespa/fsa/segmenter.cpp
+++ b/fsa/src/vespa/fsa/segmenter.cpp
@@ -77,12 +77,16 @@ void Segmenter::Segments::buildSegmentation(Segmenter::SegmentationMethod method
switch(method){
case SEGMENTATION_WEIGHTED_BIAS100:
bias+=50;
+ [[fallthrough]];
case SEGMENTATION_WEIGHTED_BIAS50:
bias+=30;
+ [[fallthrough]];
case SEGMENTATION_WEIGHTED_BIAS20:
bias+=10;
+ [[fallthrough]];
case SEGMENTATION_WEIGHTED_BIAS10:
bias+=10;
+ [[fallthrough]];
case SEGMENTATION_WEIGHTED:
bestid=-1;
for(i=n_txt;i>=0;i--){