You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2019/01/24 00:11:00 UTC

[jira] [Created] (ARROW-4346) [C++] Fix compiler warnings with gcc 8.2.0

Wes McKinney created ARROW-4346:
-----------------------------------

             Summary: [C++] Fix compiler warnings with gcc 8.2.0
                 Key: ARROW-4346
                 URL: https://issues.apache.org/jira/browse/ARROW-4346
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C++
            Reporter: Wes McKinney
             Fix For: 0.13.0


I just set up a new machine on Ubuntu 18.10 so I'm getting a few papercuts

{code}
/usr/bin/ccache /usr/bin/c++  -DARROW_EXTRA_ERROR_CONTEXT -DARROW_JEMALLOC -DARROW_JEMALLOC_INCLUDE_DIR=/home/wesm/code/arrow/cpp/build/jemalloc_ep-prefix/src/jemalloc_ep/dist//include -DARROW_NO_DEPRECATED_API -DARROW_USE_GLOG -DARROW_USE_SIMD -DARROW_WITH_ZSTD -Isrc -I../src -isystem /home/wesm/cpp-toolchain/include -isystem gbenchmark_ep/src/gbenchmark_ep-install/include -isystem jemalloc_ep-prefix/src -isystem ../thirdparty/hadoop/include -isystem orc_ep-install/include -isystem /home/wesm/cpp-toolchain/include/thrift -Wno-noexcept-type  -fuse-ld=gold -ggdb -O0  -Wall -Wconversion -Wno-sign-conversion -Werror -msse4.2  -g -fPIE   -std=gnu++11 -MD -MT src/parquet/CMakeFiles/parquet-encoding-benchmark.dir/encoding-benchmark.cc.o -MF src/parquet/CMakeFiles/parquet-encoding-benchmark.dir/encoding-benchmark.cc.o.d -o src/parquet/CMakeFiles/parquet-encoding-benchmark.dir/encoding-benchmark.cc.o -c ../src/parquet/encoding-benchmark.cc
In file included from ../src/parquet/encoding-internal.h:33,
                 from ../src/parquet/encoding-benchmark.cc:20:
../src/parquet/encoding.h: In instantiation of ‘int parquet::Decoder<DType>::DecodeSpaced(parquet::Decoder<DType>::T*, int, int, const uint8_t*, int64_t) [with DType = parquet::DataType<(parquet::Type::type)6>; parquet::Decoder<DType>::T = parquet::ByteArray; uint8_t = unsigned char; int64_t = long int]’:
../src/parquet/encoding.h:110:15:   required from here
../src/parquet/encoding.h:120:11: error: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘parquet::Decoder<parquet::DataType<(parquet::Type::type)6> >::T’ {aka ‘struct parquet::ByteArray’}; use assignment or value-initialization instead [-Werror=class-memaccess]
     memset(buffer + values_read, 0, (num_values - values_read) * sizeof(T));
     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/parquet/schema.h:31,
                 from ../src/parquet/encoding.h:29,
                 from ../src/parquet/encoding-internal.h:33,
                 from ../src/parquet/encoding-benchmark.cc:20:
../src/parquet/types.h:155:8: note: ‘parquet::Decoder<parquet::DataType<(parquet::Type::type)6> >::T’ {aka ‘struct parquet::ByteArray’} declared here
 struct ByteArray {
        ^~~~~~~~~
cc1plus: all warnings being treated as errors
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)