Browse Source

- added defaults

development
Andreas Romeyke 10 months ago
parent
commit
ef167c84d5
  1. 3
      src/messages/msg_parser.c
  2. 1
      src/parser/config_parser.c

3
src/messages/msg_parser.c

@ -36,6 +36,7 @@ const char * get_parser_function_name( function_t f ) {
case fc_all_geotiff_tags_have_same_count_of_values: return "fc_all_geotiff_tags_have_same_count_of_values"; break;
case fc_check_cardinality: return "fc_check_cardinality"; break;
case fc_dummy: return "fc_dummy"; break;
default: ;
}
return "missed function description, should not occur";
}
@ -68,6 +69,7 @@ const char * get_parser_function_description( function_t f ) {
case fc_all_geotiff_tags_have_same_count_of_values: return "All GeoTIFF tags should have same amount of values,"; break;
case fc_check_cardinality: return "Cardinality of tags should be equal,"; break;
case fc_dummy: return "Dummy."; break;
default: ;
}
return "missed function description, should not occur";
}
@ -133,6 +135,7 @@ const char * get_parser_error_description( returncode_t r ) {
case tagerror_expected_count_not_a_multiple_of_four: return "unexpected tag count value, should be a multiple of four."; break;
case tagerror_expected_count_less_than_four: return "unexpected tag count value, should be at least four."; break;
case ifderror_different_cardinality: return "but counts of values are different."; break;
default: ;
}
assert( r == is_valid ); /* missed error description, should not occur */
return "missed error description, should not occur";

1
src/parser/config_parser.c

@ -1129,6 +1129,7 @@ void set_mode(modes_t mode) {
}
case mode_enable_type_checks: { /* nothing, because we must enable it only in rule_addtag_config */
}
default: assert(false);
}
parser_state.mode |= mode;
}

Loading…
Cancel
Save