Error: COMPILER_WARNING (CWE-477): [#def1] spglib-2.6.0/python/py_bindings.cpp: scope_hint: In function ‘std::optional<pybind11::dict> spglib::layer_dataset(array_double, array_double, array_int, pybind11::int_, pybind11::float_)’ spglib-2.6.0/python/py_bindings.cpp:264:41: warning[-Wdeprecated-declarations]: ‘SpglibDataset* spg_get_layer_dataset(const double (*)[3], const double (*)[3], const int*, int, int, double)’ is deprecated: Experimental interface. May be removed in next major release. # 264 | if ((dataset = spg_get_layer_dataset( # | ~~~~~~~~~~~~~~~~~~~~~^ # 265 | (double (*)[3])lattice.data(), (double (*)[3])positions.data(), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 266 | atom_types.data(), atom_types.size(), aperiodic_dir, symprec)) == # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ spglib-2.6.0/python/py_bindings.cpp:4: included_from: Included from here. spglib-2.6.0/include/spglib.h:212:24: note: declared here # 212 | SPG_API SpglibDataset *spg_get_layer_dataset( # | ^~~~~~~~~~~~~~~~~~~~~ # 262| py::float_ symprec) { # 263| SpglibDataset *dataset; # 264|-> if ((dataset = spg_get_layer_dataset( # 265| (double (*)[3])lattice.data(), (double (*)[3])positions.data(), # 266| atom_types.data(), atom_types.size(), aperiodic_dir, symprec)) == Error: COMPILER_WARNING (CWE-477): [#def2] spglib-2.6.0/python/py_bindings.cpp: scope_hint: In function ‘std::optional<pybind11::int_> spglib::symmetry(array_int, array_double, array_double, array_double, array_int, pybind11::float_, pybind11::float_)’ spglib-2.6.0/python/py_bindings.cpp:375:30: warning[-Wdeprecated-declarations]: ‘int spgat_get_symmetry(int (*)[3][3], double (*)[3], int, const double (*)[3], const double (*)[3], const int*, int, double, double)’ is deprecated: Use the variables from SpglibDataset (rotations, translations) # 375 | return spgat_get_symmetry( # | ~~~~~~~~~~~~~~~~~~^ # 376 | (int (*)[3][3])rotations.mutable_data(), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 377 | (double (*)[3])translations.mutable_data(), rotations.shape(0), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 378 | (double (*)[3])lattice.data(), (double (*)[3])positions.data(), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 379 | atom_types.data(), atom_types.size(), symprec, angle_tolerance); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ spglib-2.6.0/include/spglib.h:254:13: note: declared here # 254 | SPG_API int spgat_get_symmetry(int rotation[][3][3], double translation[][3], # | ^~~~~~~~~~~~~~~~~~ # 373| array_double positions, array_int atom_types, py::float_ symprec, # 374| py::float_ angle_tolerance) { # 375|-> return spgat_get_symmetry( # 376| (int (*)[3][3])rotations.mutable_data(), # 377| (double (*)[3])translations.mutable_data(), rotations.shape(0), Error: COMPILER_WARNING (CWE-477): [#def3] spglib-2.6.0/python/py_bindings.cpp: scope_hint: In function ‘std::optional<pybind11::int_> spglib::hall_number_from_symmetry(array_int, array_double, pybind11::float_)’ spglib-2.6.0/python/py_bindings.cpp:511:45: warning[-Wdeprecated-declarations]: ‘int spg_get_hall_number_from_symmetry(const int (*)[3][3], const double (*)[3], int, double)’ is deprecated: Use the variable from SpglibSpacegroupType instead (hall_number) # 511 | return spg_get_hall_number_from_symmetry((int (*)[3][3])rotations.data(), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 512 | (double (*)[3])translations.data(), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 513 | rotations.shape(0), symprec); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ spglib-2.6.0/include/spglib.h:327:13: note: declared here # 327 | SPG_API int spg_get_hall_number_from_symmetry(int const rotation[][3][3], # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 509| std::optional<py::int_> spglib::hall_number_from_symmetry( # 510| array_int rotations, array_double translations, py::float_ symprec) { # 511|-> return spg_get_hall_number_from_symmetry((int (*)[3][3])rotations.data(), # 512| (double (*)[3])translations.data(), # 513| rotations.shape(0), symprec);
| analyzer-version-clippy | 1.91.1 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| analyzer-version-gcc-analyzer | 15.2.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.91.1 |
| diffbase-analyzer-version-cppcheck | 2.18.3 |
| diffbase-analyzer-version-gcc | 15.2.1 |
| diffbase-analyzer-version-gcc-analyzer | 15.2.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-149.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | spglib-2.6.0-1.20251119134019757954.pr579.81.g4bd37ad |
| diffbase-store-results-to | /tmp/tmp7uwck0u6/spglib-2.6.0-1.20251119134019757954.pr579.81.g4bd37ad.tar.xz |
| diffbase-time-created | 2025-11-19 13:50:22 |
| diffbase-time-finished | 2025-11-19 13:51:59 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp7uwck0u6/spglib-2.6.0-1.20251119134019757954.pr579.81.g4bd37ad.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp7uwck0u6/spglib-2.6.0-1.20251119134019757954.pr579.81.g4bd37ad.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-149.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | spglib-2.6.0-1.20251119005318607022.develop.61.gcb11bf2 |
| store-results-to | /tmp/tmpt63wp6_x/spglib-2.6.0-1.20251119005318607022.develop.61.gcb11bf2.tar.xz |
| time-created | 2025-11-19 13:47:59 |
| time-finished | 2025-11-19 13:50:04 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpt63wp6_x/spglib-2.6.0-1.20251119005318607022.develop.61.gcb11bf2.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpt63wp6_x/spglib-2.6.0-1.20251119005318607022.develop.61.gcb11bf2.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |