Skip to content

Commit ec55c80

Browse files
committed
Suppress duplicated-branches compiler warning in mbfilter
1 parent b29ab61 commit ec55c80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/mbstring/libmbfl/mbfl/mbfilter.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,13 +1893,17 @@ mime_header_encoder_new(
18931893
return NULL;
18941894
}
18951895

1896+
/* Value of the constants are identical */
1897+
#pragma GCC diagnostic push
1898+
#pragma GCC diagnostic ignored "-Wduplicated-branches"
18961899
if (transenc->no_encoding == mbfl_no_encoding_qprint) {
18971900
pe->encod_filter->status |= MBFL_QPRINT_STS_MIME_HEADER;
18981901
pe->encod_filter_backup->status |= MBFL_QPRINT_STS_MIME_HEADER;
18991902
} else {
19001903
pe->encod_filter->status |= MBFL_BASE64_STS_MIME_HEADER;
19011904
pe->encod_filter_backup->status |= MBFL_BASE64_STS_MIME_HEADER;
19021905
}
1906+
#pragma GCC diagnostic pop
19031907

19041908
return pe;
19051909
}

0 commit comments

Comments
 (0)