Description of problem: The version of sparse installed by Fedora 26 (0.5.0-11) which is equivalent to v0.5.0-63-g82d573cb15e3 of the sparse git tree has a bug which enables -Wbitwise by default and does not honor "-Wno-bitwise" to disable the checks. This was fixed upstream by 0dfda0d1f0fe ("make -Wbitwise operational again", 2017-02-18) Version-Release number of selected component (if applicable): 0.5.0-11 How reproducible: Always Steps to Reproduce: 1. Attempt to build something with sparse that has a bitwise warning, and disable the warning using -Wno-bitwise Actual results: The bitiwse warnings are always displayed regardless of whether -Wno-bitwise is added to the flags or not. Expected results: bitwise warnings are disabled and do not produce warning output when -Wno-bitwise is provided. Additional info: It seems that sparse has released v0.5.1 but has not published it in the usual place that the package expects to find new releases.
Created attachment 1339940 [details] sparse srpm updated to master git tree I have an updated SRPM package which updates to the latest git tree of sparse, similar to how the previous update of 0.5.0-10 updated the tree. Unfortunately 0.5.1 doesn't appear to have been officially released anywhere (it's not on the normal location on kernel.org...?) So this version still leaves it as 0.5.0-12
Thanks for the heads up. I went ahead and updated the package to the new 0.5.1 release. This also cleans some old cruft out of the specfile's CFLAGS handling, though it relies on a small patch that I just sent upstream to the sparse maintainers. In any case, the update request is available here for testing: https://koji.fedoraproject.org/koji/buildinfo?buildID=986382
Out of curiosity, where is the 0.5.1 release hosted? It wasn't hosted in the same place as the previous 0.5.0 release.
I found it here: https://git.kernel.org/pub/scm/devel/sparse/sparse.git/snapshot/sparse-0.5.1.tar.gz
sparse-0.5.1-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-c0a6847d8e
The way that the makefile works, we were dropping some compiler flags that are needed when we passed in CFLAGS= on the make command line. The -2.fc26 package corrects the build.
sparse-0.5.1-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-c0a6847d8e
sparse-0.5.1-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.