PhotoFlow icon indicating copy to clipboard operation
PhotoFlow copied to clipboard

strict-aliasing-punning

Open awissu opened this issue 9 years ago • 2 comments

Hi! I bumped into rpmlint errors, when tried to build rpm in OBS:

[  945s] I: Program is likely to break with new gcc. Try -fno-strict-aliasing.
[  945s] W: photoflow strict-aliasing-punning /home/abuild/rpmbuild/BUILD/PhotoFlow-0.2.7/src/external/rawspeed/RawSpeed/BitPumpJPEG.h:53, 88, 126
[  945s] W: photoflow strict-aliasing-punning /home/abuild/rpmbuild/BUILD/PhotoFlow-0.2.7/src/external/rawspeed/RawSpeed/BitPumpMSB.h:53, 88, 126
[  945s] W: photoflow strict-aliasing-punning /home/abuild/rpmbuild/BUILD/PhotoFlow-0.2.7/src/external/rawspeed/RawSpeed/MosDecoder.cpp:110
[  945s] W: photoflow strict-aliasing-punning /home/abuild/rpmbuild/BUILD/PhotoFlow-0.2.7/src/rt/rtengine/sleef.c:1216, 1217, 1223, 1224, 1230, 1231
[  945s] 
[  945s] I: Program returns random data in a function
[  945s] E: photoflow no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/PhotoFlow-0.2.7/src/operations/subtr_image.hh:59, 77
[  945s] 
[  945s] I: Program returns random data in a function
[  945s] E: photoflow no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/PhotoFlow-0.2.7/src/operations/subtr_image.hh:59, 77

See: https://build.opensuse.org/package/live_build_log/home:awissu:branches:graphics/photoflow/openSUSE_Tumbleweed/x86_64

awissu avatar Nov 09 '16 09:11 awissu

I fixed the missing return value error in master branch. For the "strict-aliasing-punning" issue, I need to see how to optimally change the compiler options to add "-fno-strict-aliasing" only where needed.

aferrero2707 avatar Nov 09 '16 11:11 aferrero2707

I fixed the missing return value error in master branch.

[ 1042s] I: Program returns random data in a function
[ 1042s] E: photoflow no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/PhotoFlow-0.2.7/src/operations/subtr_image.hh:59

For the "strict-aliasing-punning" issue, I need to see how to optimally change the compiler options to add "-fno-strict-aliasing" only where needed.

See: https://build.opensuse.org/package/live_build_log/home:awissu:branches:graphics/photoflow/openSUSE_13.2/i586

awissu avatar Nov 09 '16 12:11 awissu