Skip to content

Commit

Permalink
Better guard for warnings about ignored collating sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
nberth committed Oct 1, 2024
1 parent 6a777c4 commit ca1b299
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cobc/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -4783,7 +4783,8 @@ validate_indexed_key_field (struct cb_file *f, struct cb_field *records,
}

/* check collating sequence is not ignored */
if (CB_TREE_CLASS (k) != CB_CLASS_ALPHANUMERIC) {
if (get_warn_opt_value (cb_warn_filler) != COBC_WARN_DISABLED
&& CB_TREE_CLASS (k) != CB_CLASS_ALPHANUMERIC) {
const char *source = "KEY";
cb_tree colseq = (cbak == NULL)
? f->collating_sequence_key
Expand Down

0 comments on commit ca1b299

Please sign in to comment.