https://bugs.kde.org/show_bug.cgi?id=423728
Bug ID: 423728 Summary: inefficient-qlist fails on 32bit architectures Product: clazy Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: unassigned-b...@kde.org Reporter: p...@kde.org CC: smart...@kde.org Target Milestone: --- SUMMARY When testing clazy 1.7, the inefficient-qlist test fails when run on 32bit Linux architectures; this is similar/related to the old bug 401494 and bug 413169. Because of the changes done for bug 413169, it does not fail on x86, however it still fails on other 32bit architectures (e.g. arm, mips, powerpc). STEPS TO REPRODUCE 1. build clazy on a 32bit Linux architecture different than x86 2. run the test suite, either from the build directory, or after installation OBSERVED RESULT These are the outputs on armhf, and (sort of different name in library directory) they are the same also on the other affected architectures: Qt version: 51402 Qt headers: /usr/include/arm-linux-gnueabihf/qt5 clazy-standalone connect-non-signal/392441.cpp -checks=connect-non-signal -- -Wno-unused-value -Qunused-arguments -std=c++14 -isystem /usr/include/arm-linux-gnueabihf/qt5 -fPIC -L /usr/lib/arm-linux-gnueabihf Running: clang -Xclang -load -Xclang ClazyPlugin.so -Xclang -add-plugin -Xclang clazy -Wno-unused-value -Qunused-arguments -std=c++14 -isystem /usr/include/arm-linux-gnueabihf/qt5 -fPIC -L /usr/lib/arm-linux-gnueabihf -c -Xclang -plugin-arg-clazy -Xclang inefficient-qlist inefficient-qlist/main.cpp output_file=inefficient-qlist/main.cpp.out [FAIL] inefficient-qlist (plugin) diff -Naur --strip-trailing-cr inefficient-qlist/main.cpp.expected.x86 inefficient-qlist/main.cpp.result --- inefficient-qlist/main.cpp.expected.x86 2020-06-28 23:30:42.000000000 +0000 +++ inefficient-qlist/main.cpp.result 2020-07-01 06:29:31.920309898 +0000 @@ -1,4 +1,4 @@ inefficient-qlist/main.cpp:24:5: warning: Use QVector instead of QList for type with size 9 bytes [-Wclazy-inefficient-qlist] inefficient-qlist/main.cpp:38:11: warning: Use QVector instead of QList for type with size 9 bytes [-Wclazy-inefficient-qlist] inefficient-qlist/main.cpp:40:5: warning: Use QVector instead of QList for type with size 9 bytes [-Wclazy-inefficient-qlist] -inefficient-qlist/main.cpp:53:5: warning: Use QVector instead of QList for type with size 12 bytes [-Wclazy-inefficient-qlist] +inefficient-qlist/main.cpp:53:5: warning: Use QVector instead of QList for type with size 16 bytes [-Wclazy-inefficient-qlist] Logs: https://buildd.debian.org/status/fetch.php?pkg=clazy&arch=armel&ver=1.7-1&stamp=1593585667&raw=1 https://buildd.debian.org/status/fetch.php?pkg=clazy&arch=armhf&ver=1.7-1&stamp=1593585009&raw=1 https://buildd.debian.org/status/fetch.php?pkg=clazy&arch=mipsel&ver=1.7-1&stamp=1593588667&raw=1 EXPECTED RESULT inefficient-qlist & inefficient-qlist-soft pass on any architecture. ADDITIONAL INFORMATION IMHO the change done for bug 413169 was more a workaround than a real fix; ideally the test output should be adapted to whatever is the actual size of QVariant. -- You are receiving this mail because: You are watching all bug changes.