Closed dcb314 closed 5 years ago
Well spotted. I agree with the adoption of this flag. Thanks!
For now I've limited the usage of -Wrestrict
on clang builds since most distros ship gcc compilers that are too old to support it. OSX builds use clang and one is ran at every commit, logs visible here https://travis-ci.org/dyne/frei0r
That's great re additional option on clang and that Travis can run macOS, but the macOS build is showing usage of gcc instead and complaining about an unknown warning option in the build log. :-/
filter/measure/pr0file.c:327:5: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
Source code is
man sprintf says:
Many more examples in the same file. Suggest compile with -Wrestrict.