Task #34640 - fixed.err
back to task #34640download
Error: COMPILER_WARNING (CWE-457):
spglib-2.5.0-build/spglib-2.5.0/src/pointgroup.c:752:22: warning[-Wmaybe-uninitialized]: ‘axes’ may be used uninitialized
# 752 | if (rot_axes[axes[0]][aperiodic_axis] == 1 ||
# | ~~~~^~~
spglib-2.5.0-build/spglib-2.5.0/src/pointgroup.c: scope_hint: In function ‘ptg_get_transformation_matrix’
spglib-2.5.0-build/spglib-2.5.0/src/pointgroup.c:382:9: note: ‘axes’ declared here
# 382 | int axes[3];
# | ^~~~
# 750| }
# 751|
# 752|-> if (rot_axes[axes[0]][aperiodic_axis] == 1 ||
# 753| rot_axes[axes[0]][aperiodic_axis] == -1) {
# 754| /* For Monoclinic/Oblique. */
Error: COMPILER_WARNING (CWE-457):
spglib-2.5.0-build/spglib-2.5.0/src/pointgroup.c:1038:46: warning[-Wmaybe-uninitialized]: ‘axes’ may be used uninitialized
# 1038 | tmat[i][j] = s[j] * rot_axes[axes[j] % NUM_ROT_AXES][i];
# | ~~~~^~~
spglib-2.5.0-build/spglib-2.5.0/src/pointgroup.c: scope_hint: In function ‘ptg_get_transformation_matrix’
spglib-2.5.0-build/spglib-2.5.0/src/pointgroup.c:382:9: note: ‘axes’ declared here
# 382 | int axes[3];
# | ^~~~
# 1036| for (i = 0; i < 3; i++) {
# 1037| for (j = 0; j < 3; j++) {
# 1038|-> tmat[i][j] = s[j] * rot_axes[axes[j] % NUM_ROT_AXES][i];
# 1039| }
# 1040| }
Error: COMPILER_WARNING (CWE-457):
spglib-2.5.0-build/spglib-2.5.0/src/spin.c: scope_hint: In function ‘spn_get_idealized_cell’
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:272:35: warning[-Wmaybe-uninitialized]: ‘vector_res[0]’ may be used uninitialized
# 272 | vector_res[s] += vector_tmp[s] - cell->tensors[3 * i + s];
# | ^~
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:198:51: note: ‘vector_res[0]’ was declared here
# 198 | double pos_tmp[3], pos_res[3], vector_tmp[3], vector_res[3];
# | ^~~~~~~~~~
# 270| with_time_reversal, is_axial);
# 271| for (s = 0; s < 3; s++) {
# 272|-> vector_res[s] += vector_tmp[s] - cell->tensors[3 * i + s];
# 273| }
# 274| }
Error: COMPILER_WARNING (CWE-457):
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:272:35: warning[-Wmaybe-uninitialized]: ‘vector_res[1]’ may be used uninitialized
# 272 | vector_res[s] += vector_tmp[s] - cell->tensors[3 * i + s];
# | ^~
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:198:51: note: ‘vector_res[1]’ was declared here
# 198 | double pos_tmp[3], pos_res[3], vector_tmp[3], vector_res[3];
# | ^~~~~~~~~~
# 270| with_time_reversal, is_axial);
# 271| for (s = 0; s < 3; s++) {
# 272|-> vector_res[s] += vector_tmp[s] - cell->tensors[3 * i + s];
# 273| }
# 274| }
Error: COMPILER_WARNING (CWE-457):
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:272:35: warning[-Wmaybe-uninitialized]: ‘vector_res[2]’ may be used uninitialized
# 272 | vector_res[s] += vector_tmp[s] - cell->tensors[3 * i + s];
# | ^~
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:198:51: note: ‘vector_res[2]’ was declared here
# 198 | double pos_tmp[3], pos_res[3], vector_tmp[3], vector_res[3];
# | ^~~~~~~~~~
# 270| with_time_reversal, is_axial);
# 271| for (s = 0; s < 3; s++) {
# 272|-> vector_res[s] += vector_tmp[s] - cell->tensors[3 * i + s];
# 273| }
# 274| }