tukaani-project / xz

XZ Utils
https://tukaani.org/xz/
Other
542 stars 101 forks source link

xz: Fix warning -Wformat-nonliteral on clang in message.c. #17

Closed JiaT75 closed 1 year ago

JiaT75 commented 1 year ago

clang and gcc differ in how they handle -Wformat-nonliteral. gcc will allow a non-literal format string as long as the function takes its format arguments as a va_list.

Pull request checklist

Please check if your PR fulfills the following requirements:

Pull request type

Please check the type of change your PR introduces: - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting, renaming, typo fix) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] Documentation content changes - [X] Other (please describe): Disable a clang warning ## What is the current behavior?

Related Issue URL:

What is the new behavior?

Does this introduce a breaking change?

Other information