summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-08-04 10:27:24 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-08-04 10:27:24 +0900
commit18c870d13030239649196636b40f71330e28fac4 (patch)
tree8f6d7573de9c630650efde0d6d7d8364adf38aad
parent5b7ecc369b20415e815dd92a8571a336a189e02d (diff)
add fallthrough tags to have fewer warnings
-rw-r--r--src/bin/config.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/bin/config.c b/src/bin/config.c
index 72e6a7f..642cc0e 100644
--- a/src/bin/config.c
+++ b/src/bin/config.c
@@ -572,6 +572,7 @@ config_load(const char *key)
572 case 0: 572 case 0:
573 case 1: 573 case 1:
574 _config_upgrade_to_v2(config); 574 _config_upgrade_to_v2(config);
575 EINA_FALLTHROUGH;
575 /*pass through*/ 576 /*pass through*/
576 case 2: 577 case 2:
577 LIM(config->font.size, 3, 400); 578 LIM(config->font.size, 3, 400);
@@ -582,6 +583,7 @@ config_load(const char *key)
582 /* upgrade to v3 */ 583 /* upgrade to v3 */
583 config->active_links = EINA_TRUE; 584 config->active_links = EINA_TRUE;
584 config->bell_rings = EINA_TRUE; 585 config->bell_rings = EINA_TRUE;
586 EINA_FALLTHROUGH;
585 /*pass through*/ 587 /*pass through*/
586 case 3: 588 case 3:
587 if (eina_list_count(config->keys) == 0) 589 if (eina_list_count(config->keys) == 0)
@@ -589,45 +591,58 @@ config_load(const char *key)
589 _add_default_keys(config); 591 _add_default_keys(config);
590 } 592 }
591 config->gravatar = EINA_TRUE; 593 config->gravatar = EINA_TRUE;
594 EINA_FALLTHROUGH;
592 /*pass through*/ 595 /*pass through*/
593 case 4: 596 case 4:
597 EINA_FALLTHROUGH;
594 /*pass through*/ 598 /*pass through*/
595 case 5: 599 case 5:
596 config->ty_escapes = EINA_TRUE; 600 config->ty_escapes = EINA_TRUE;
601 EINA_FALLTHROUGH;
597 /*pass through*/ 602 /*pass through*/
598 case 6: 603 case 6:
599 config->changedir_to_current = EINA_TRUE; 604 config->changedir_to_current = EINA_TRUE;
605 EINA_FALLTHROUGH;
600 /*pass through*/ 606 /*pass through*/
601 case 7: 607 case 7:
602 _add_key(config, "n", 1, 0, 1, 0, "term_new"); 608 _add_key(config, "n", 1, 0, 1, 0, "term_new");
609 EINA_FALLTHROUGH;
603 /*pass through*/ 610 /*pass through*/
604 case 8: 611 case 8:
605 _add_key(config, "t", 1, 1, 0, 0, "tab_title"); 612 _add_key(config, "t", 1, 1, 0, 0, "tab_title");
613 EINA_FALLTHROUGH;
606 /*pass through*/ 614 /*pass through*/
607 case 9: 615 case 9:
608 /* actually do nothing */ 616 /* actually do nothing */
617 EINA_FALLTHROUGH;
609 /*pass through*/ 618 /*pass through*/
610 case 10: 619 case 10:
611 config->font.bolditalic = EINA_TRUE; 620 config->font.bolditalic = EINA_TRUE;
621 EINA_FALLTHROUGH;
612 /*pass through*/ 622 /*pass through*/
613 case 11: 623 case 11:
614 _add_key(config, "Left", 0, 0, 1, 0, "term_prev"); 624 _add_key(config, "Left", 0, 0, 1, 0, "term_prev");
615 _add_key(config, "Right", 0, 0, 1, 0, "term_next"); 625 _add_key(config, "Right", 0, 0, 1, 0, "term_next");
626 EINA_FALLTHROUGH;
616 /*pass through*/ 627 /*pass through*/
617 case 12: 628 case 12:
618 _add_key(config, "Home", 0, 0, 1, 0, "top_backlog"); 629 _add_key(config, "Home", 0, 0, 1, 0, "top_backlog");
630 EINA_FALLTHROUGH;
619 /*pass through*/ 631 /*pass through*/
620 case 13: 632 case 13:
621 _add_key(config, "End", 0, 0, 1, 0, "reset_scroll"); 633 _add_key(config, "End", 0, 0, 1, 0, "reset_scroll");
634 EINA_FALLTHROUGH;
622 /*pass through*/ 635 /*pass through*/
623 case 14: 636 case 14:
624 config->disable_focus_visuals = EINA_FALSE; 637 config->disable_focus_visuals = EINA_FALSE;
638 EINA_FALLTHROUGH;
625 /*pass through*/ 639 /*pass through*/
626 case 15: 640 case 15:
627 _add_key(config, "Up", 0, 1, 0, 0, "term_up"); 641 _add_key(config, "Up", 0, 1, 0, 0, "term_up");
628 _add_key(config, "Down", 0, 1, 0, 0, "term_down"); 642 _add_key(config, "Down", 0, 1, 0, 0, "term_down");
629 _add_key(config, "Left", 0, 1, 0, 0, "term_left"); 643 _add_key(config, "Left", 0, 1, 0, 0, "term_left");
630 _add_key(config, "Right", 0, 1, 0, 0, "term_right"); 644 _add_key(config, "Right", 0, 1, 0, 0, "term_right");
645 EINA_FALLTHROUGH;
631 /*pass through*/ 646 /*pass through*/
632 case CONF_VER: /* 16 */ 647 case CONF_VER: /* 16 */
633 config->version = CONF_VER; 648 config->version = CONF_VER;