You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2018/06/11 20:47:00 UTC

[jira] [Created] (PARQUET-1323) [C++] Fix compiler warnings with clang-6.0

Wes McKinney created PARQUET-1323:
-------------------------------------

             Summary: [C++] Fix compiler warnings with clang-6.0
                 Key: PARQUET-1323
                 URL: https://issues.apache.org/jira/browse/PARQUET-1323
             Project: Parquet
          Issue Type: Improvement
          Components: parquet-cpp
            Reporter: Wes McKinney
             Fix For: cpp-1.5.0


Observed when building today

{code}
[1/23] Running thrift compiler on parquet.thrift
[WARNING:/home/wesm/code/parquet-cpp/src/parquet/parquet.thrift:295] The "byte" type is a compatibility alias for "i8". Use "i8" to emphasize the signedness of this type.

[15/23] Building CXX object CMakeFiles/parquet_objlib.dir/src/parquet/schema.cc.o
In file included from ../src/parquet/schema.cc:18:
../src/parquet/schema.h:376:27: warning: private field 'schema_descr_' is not used [-Wunused-private-field]
  const SchemaDescriptor* schema_descr_;
                          ^
1 warning generated.
[20/23] Building CXX object CMakeFiles/parquet_objlib.dir/src/parquet/metadata.cc.o
../src/parquet/metadata.cc:84:10: warning: comparison of two values with different enumeration types in switch statement ('Type::type' and 'parquet::Type::type') [-Wenum-compare-switch]
    case Type::FIXED_LEN_BYTE_ARRAY:
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
../src/parquet/metadata.cc:82:10: warning: comparison of two values with different enumeration types in switch statement ('Type::type' and 'parquet::Type::type') [-Wenum-compare-switch]
    case Type::BYTE_ARRAY:
         ^~~~~~~~~~~~~~~~
../src/parquet/metadata.cc:80:10: warning: comparison of two values with different enumeration types in switch statement ('Type::type' and 'parquet::Type::type') [-Wenum-compare-switch]
    case Type::FLOAT:
         ^~~~~~~~~~~
../src/parquet/metadata.cc:78:10: warning: comparison of two values with different enumeration types in switch statement ('Type::type' and 'parquet::Type::type') [-Wenum-compare-switch]
    case Type::DOUBLE:
         ^~~~~~~~~~~~
../src/parquet/metadata.cc:76:10: warning: comparison of two values with different enumeration types in switch statement ('Type::type' and 'parquet::Type::type') [-Wenum-compare-switch]
    case Type::INT96:
         ^~~~~~~~~~~
../src/parquet/metadata.cc:74:10: warning: comparison of two values with different enumeration types in switch statement ('Type::type' and 'parquet::Type::type') [-Wenum-compare-switch]
    case Type::INT64:
         ^~~~~~~~~~~
../src/parquet/metadata.cc:72:10: warning: comparison of two values with different enumeration types in switch statement ('Type::type' and 'parquet::Type::type') [-Wenum-compare-switch]
    case Type::INT32:
         ^~~~~~~~~~~
../src/parquet/metadata.cc:70:10: warning: comparison of two values with different enumeration types in switch statement ('Type::type' and 'parquet::Type::type') [-Wenum-compare-switch]
    case Type::BOOLEAN:
         ^~~~~~~~~~~~~
8 warnings generated.
[23/23] Creating library symlink debug/libparquet.so.1 debug/libparquet.so
{code}



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