Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
23.10.1
-
None
-
2024-1
Description
gcc-14.1.1
/home/buildbot/aarch64-fedora-40-rpm-autobake/build/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/storage/columnstore/columnstore/writeengine/wrapper/writeengine.cpp: In function ‘void WriteEngine::allocateValArray(void*&, std::vector<colTuple_struct>::size_type, ColType, int)’:
|
/home/buildbot/aarch64-fedora-40-rpm-autobake/build/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/storage/columnstore/columnstore/writeengine/wrapper/writeengine.cpp:1102:50: error: ‘void* calloc(size_t, size_t)’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
|
1102 | case WriteEngine::WR_TEXT: valArray = calloc(sizeof(char), totalRow * MAX_COLUMN_BOUNDARY); break;
|
| ^~~~~~~~~~~~
|
/home/buildbot/aarch64-fedora-40-rpm-autobake/build/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/storage/columnstore/columnstore/writeengine/wrapper/writeengine.cpp:1102:50: note: earlier argument should specify number of elements, later size of each element
|
/home/buildbot/aarch64-fedora-40-rpm-autobake/build/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/storage/columnstore/columnstore/writeengine/wrapper/writeengine.cpp:1103:51: error: ‘void* calloc(size_t, size_t)’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
|
1103 | case WriteEngine::WR_TOKEN: valArray = calloc(sizeof(Token), totalRow); break;
|
| ^~~~~~~~~~~~~
|
/home/buildbot/aarch64-fedora-40-rpm-autobake/build/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/storage/columnstore/columnstore/writeengine/wrapper/writeengine.cpp:1103:51: note: earlier argument should specify number of elements, later size of each element
|
cc1plus: all warnings being treated as errors
|