Nowdays, -Wmisexpect warns too much uselessly, eg.: ../lib/decompress/zstd_decompress_block.c:874:17: warning: Potential performance regression from use of __builtin_expect(): Annotation was correct on 90.49% (1747623 / 1931364) of profiled executions. [-Wmisexpect] It would be great to provide way to specify threshold to stop this warning. For example, with -Wmisexpect=70 we would not warn for case above.