diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-07-24 09:35:58 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-07-24 09:35:58 +0000 |
commit | bc58e5d7345217fa0fbfa0d9c577ee10c7bd94db (patch) | |
tree | e76c9d1daa7b18f9383200459afe40804af83dbf /fsa | |
parent | 737979601f25ace7e5444dd3c925329c5a0a8b6d (diff) |
Add [[falltrhough]] for gcc 7
Diffstat (limited to 'fsa')
-rw-r--r-- | fsa/src/vespa/fsa/segmenter.cpp | 4 |
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--){ |