From 13b524a4d1dd11978c791e53402e11da0fd59721 Mon Sep 17 00:00:00 2001 From: Jack Del Vecchio Date: Mon, 14 Aug 2023 17:43:16 +0000 Subject: [PATCH] Fix compiler warnings. Clean up... Clean up... Clean up... Clean up ... --- plugins/parquet/parquetembed.cpp | 8 ++++++++ system/jhtree/ctfile.cpp | 4 ++++ system/jhtree/ctfile.hpp | 6 +++++- vcpkg-linux.code-workspace | 8 +------- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/plugins/parquet/parquetembed.cpp b/plugins/parquet/parquetembed.cpp index 32c6e136f35..d7ab684d1c2 100644 --- a/plugins/parquet/parquetembed.cpp +++ b/plugins/parquet/parquetembed.cpp @@ -454,6 +454,10 @@ namespace parquetembed { return 'r'; } + else + { + failx("Invalid options parameter."); + } } /** @@ -911,6 +915,8 @@ namespace parquetembed return (*array_visitor)->int32_arr->Value(index); case 64: return (*array_visitor)->int64_arr->Value(index); + default: + failx("getSigned: Invalid size %i", (*array_visitor)->size); } } @@ -926,6 +932,8 @@ namespace parquetembed return (*array_visitor)->uint32_arr->Value(index); case 64: return (*array_visitor)->uint64_arr->Value(index); + default: + failx("getUnsigned: Invalid size %i", (*array_visitor)->size); } } diff --git a/system/jhtree/ctfile.cpp b/system/jhtree/ctfile.cpp index f8ebf0d754a..132145626a5 100644 --- a/system/jhtree/ctfile.cpp +++ b/system/jhtree/ctfile.cpp @@ -1,9 +1,13 @@ /*############################################################################## + HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/system/jhtree/ctfile.hpp b/system/jhtree/ctfile.hpp index 06c7039cd69..701d053b4a9 100644 --- a/system/jhtree/ctfile.hpp +++ b/system/jhtree/ctfile.hpp @@ -1,9 +1,13 @@ /*############################################################################## + HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -511,4 +515,4 @@ interface IIndexCompressor : public IInterface }; -#endif \ No newline at end of file +#endif diff --git a/vcpkg-linux.code-workspace b/vcpkg-linux.code-workspace index 4e7e2e12078..1eb9f79413c 100644 --- a/vcpkg-linux.code-workspace +++ b/vcpkg-linux.code-workspace @@ -13,13 +13,7 @@ "-DSUPPRESS_V8EMBED=ON", "-DSUPPRESS_REMBED=ON" ], - "editor.formatOnSave": false, - "files.associations": { - "*.json": "json", - "*.mod": "ecl", - "string_view": "cpp", - "iosfwd": "cpp" - } + "editor.formatOnSave": false }, "extensions": { "recommendations": [