diff --git a/src/agg_gsv_text.cpp b/src/agg_gsv_text.cpp index 608d05a..544de9b 100644 --- a/src/agg_gsv_text.cpp +++ b/src/agg_gsv_text.cpp @@ -616,6 +616,7 @@ namespace agg } m_status = next_char; + AGG_FALLTHROUGH case next_char: if(*m_cur_chr == 0) { @@ -634,6 +635,7 @@ namespace agg m_eglyph = m_glyphs + value(m_indices + idx + 2); m_status = start_glyph; + AGG_FALLTHROUGH case start_glyph: *x = m_x; *y = m_y; diff --git a/src/agg_rounded_rect.cpp b/src/agg_rounded_rect.cpp index d994fc6..8776c7b 100644 --- a/src/agg_rounded_rect.cpp +++ b/src/agg_rounded_rect.cpp @@ -114,44 +114,52 @@ namespace agg m_arc.rewind(0); m_status++; + AGG_FALLTHROUGH case 1: cmd = m_arc.vertex(x, y); if(is_stop(cmd)) m_status++; else return cmd; + AGG_FALLTHROUGH case 2: m_arc.init(m_x2 - m_rx2, m_y1 + m_ry2, m_rx2, m_ry2, pi+pi*0.5, 0.0); m_arc.rewind(0); m_status++; + AGG_FALLTHROUGH case 3: cmd = m_arc.vertex(x, y); if(is_stop(cmd)) m_status++; else return path_cmd_line_to; + AGG_FALLTHROUGH case 4: m_arc.init(m_x2 - m_rx3, m_y2 - m_ry3, m_rx3, m_ry3, 0.0, pi*0.5); m_arc.rewind(0); m_status++; + AGG_FALLTHROUGH case 5: cmd = m_arc.vertex(x, y); if(is_stop(cmd)) m_status++; else return path_cmd_line_to; + AGG_FALLTHROUGH case 6: m_arc.init(m_x1 + m_rx4, m_y2 - m_ry4, m_rx4, m_ry4, pi*0.5, pi); m_arc.rewind(0); m_status++; + AGG_FALLTHROUGH case 7: cmd = m_arc.vertex(x, y); if(is_stop(cmd)) m_status++; else return path_cmd_line_to; + AGG_FALLTHROUGH case 8: cmd = +path_cmd_end_poly | path_flags_close | path_flags_ccw; m_status++; diff --git a/src/agg_vcgen_bspline.cpp b/src/agg_vcgen_bspline.cpp index 4a0be66..7a4fb5d 100644 --- a/src/agg_vcgen_bspline.cpp +++ b/src/agg_vcgen_bspline.cpp @@ -133,6 +133,7 @@ namespace agg case initial: rewind(0); + AGG_FALLTHROUGH case ready: if(m_src_vertices.size() < 2) { @@ -155,6 +156,7 @@ namespace agg m_status = polygon; m_src_vertex = 0; + AGG_FALLTHROUGH case polygon: if(m_cur_abscissa >= m_max_abscissa) { diff --git a/src/agg_vcgen_contour.cpp b/src/agg_vcgen_contour.cpp index d7cf8a4..0733dfb 100644 --- a/src/agg_vcgen_contour.cpp +++ b/src/agg_vcgen_contour.cpp @@ -108,6 +108,7 @@ namespace agg case initial: rewind(0); + AGG_FALLTHROUGH case ready: if(m_src_vertices.size() < 2 + unsigned(m_closed != 0)) { @@ -119,6 +120,7 @@ namespace agg m_src_vertex = 0; m_out_vertex = 0; + AGG_FALLTHROUGH case outline: if(m_src_vertex >= m_src_vertices.size()) { @@ -135,6 +137,7 @@ namespace agg m_status = out_vertices; m_out_vertex = 0; + AGG_FALLTHROUGH case out_vertices: if(m_out_vertex >= m_out_vertices.size()) { diff --git a/src/agg_vcgen_dash.cpp b/src/agg_vcgen_dash.cpp index fd5d460..6482900 100644 --- a/src/agg_vcgen_dash.cpp +++ b/src/agg_vcgen_dash.cpp @@ -149,6 +149,7 @@ namespace agg case initial: rewind(0); + AGG_FALLTHROUGH case ready: if(m_num_dashes < 2 || m_src_vertices.size() < 2) { diff --git a/src/agg_vcgen_smooth_poly1.cpp b/src/agg_vcgen_smooth_poly1.cpp index ff7d488..433b704 100644 --- a/src/agg_vcgen_smooth_poly1.cpp +++ b/src/agg_vcgen_smooth_poly1.cpp @@ -109,6 +109,7 @@ namespace agg case initial: rewind(0); + AGG_FALLTHROUGH case ready: if(m_src_vertices.size() < 2) { @@ -131,6 +132,7 @@ namespace agg m_status = polygon; m_src_vertex = 0; + AGG_FALLTHROUGH case polygon: if(m_closed) { diff --git a/src/agg_vcgen_stroke.cpp b/src/agg_vcgen_stroke.cpp index eda5fd5..0083448 100644 --- a/src/agg_vcgen_stroke.cpp +++ b/src/agg_vcgen_stroke.cpp @@ -91,6 +91,7 @@ namespace agg case initial: rewind(0); + AGG_FALLTHROUGH case ready: if(m_src_vertices.size() < 2 + unsigned(m_closed != 0)) { @@ -158,6 +159,7 @@ namespace agg m_status = outline2; cmd = path_cmd_move_to; + AGG_FALLTHROUGH case outline2: if(m_src_vertex <= unsigned(m_closed == 0)) {