Skip to content

g++ with std=gnu++17 warns about declared but unused variables in the underlying DuckDB library #1829

@pachadotdev

Description

@pachadotdev

Here is the log

 In file included from duckdb/src/include/duckdb/common/sort/duckdb_pdqsort.hpp:29,
                    from duckdb/src/common/sort/radix_sort.cpp:3,
                    from duckdb/ub_src_common_sort.cpp:7:
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:584:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = double; DST = uhugeint_t]’ defined but not used [-Wunused-function]
     584 | bool TryCastWithOverflowCheck(double value, uhugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:579:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = float; DST = uhugeint_t]’ defined but not used [-Wunused-function]
     579 | bool TryCastWithOverflowCheck(float value, uhugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:574:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = long unsigned int; DST = uhugeint_t]’ defined but not used [-Wunused-function]
     574 | bool TryCastWithOverflowCheck(uint64_t value, uhugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:569:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = unsigned int; DST = uhugeint_t]’ defined but not used [-Wunused-function]
     569 | bool TryCastWithOverflowCheck(uint32_t value, uhugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:564:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = short unsigned int; DST = uhugeint_t]’ defined but not used [-Wunused-function]
     564 | bool TryCastWithOverflowCheck(uint16_t value, uhugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:559:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = unsigned char; DST = uhugeint_t]’ defined but not used [-Wunused-function]
     559 | bool TryCastWithOverflowCheck(uint8_t value, uhugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:554:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = long int; DST = uhugeint_t]’ defined but not used [-Wunused-function]
     554 | bool TryCastWithOverflowCheck(int64_t value, uhugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:549:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:549:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = int; DST = uhugeint_t]’ defined but not used [-Wunused-function]
     549 | bool TryCastWithOverflowCheck(int32_t value, uhugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:544:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = short int; DST = uhugeint_t]’ defined but not used [-Wunused-function]
     544 | bool TryCastWithOverflowCheck(int16_t value, uhugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:539:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = signed char; DST = uhugeint_t]’ defined but not used [-Wunused-function]
     539 | bool TryCastWithOverflowCheck(int8_t value, uhugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:530:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = uhugeint_t; DST = uhugeint_t]’ defined but not used [-Wunused-function]
     530 | bool TryCastWithOverflowCheck(uhugeint_t value, uhugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:525:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = uhugeint_t; DST = double]’ defined but not used [-Wunused-function]
     525 | bool TryCastWithOverflowCheck(uhugeint_t value, double &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:520:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = uhugeint_t; DST = float]’ defined but not used [-Wunused-function]
     520 | bool TryCastWithOverflowCheck(uhugeint_t value, float &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:515:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = uhugeint_t; DST = hugeint_t]’ defined but not used [-Wunused-function]
     515 | bool TryCastWithOverflowCheck(uhugeint_t value, hugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:510:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = uhugeint_t; DST = long unsigned int]’ defined but not used [-Wunused-function]
     510 | bool TryCastWithOverflowCheck(uhugeint_t value, uint64_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:505:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = uhugeint_t; DST = unsigned int]’ defined but not used [-Wunused-function]
     505 | bool TryCastWithOverflowCheck(uhugeint_t value, uint32_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:500:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = uhugeint_t; DST = short unsigned int]’ defined but not used [-Wunused-function]
     500 | bool TryCastWithOverflowCheck(uhugeint_t value, uint16_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:495:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = uhugeint_t; DST = unsigned char]’ defined but not used [-Wunused-function]
     495 | bool TryCastWithOverflowCheck(uhugeint_t value, uint8_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:490:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = uhugeint_t; DST = long int]’ defined but not used [-Wunused-function]
     490 | bool TryCastWithOverflowCheck(uhugeint_t value, int64_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:485:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = uhugeint_t; DST = int]’ defined but not used [-Wunused-function]
     485 | bool TryCastWithOverflowCheck(uhugeint_t value, int32_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:480:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = uhugeint_t; DST = short int]’ defined but not used [-Wunused-function]
     480 | bool TryCastWithOverflowCheck(uhugeint_t value, int16_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:475:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = uhugeint_t; DST = signed char]’ defined but not used [-Wunused-function]
     475 | bool TryCastWithOverflowCheck(uhugeint_t value, int8_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:467:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = hugeint_t; DST = double]’ defined but not used [-Wunused-function]
     467 | bool TryCastWithOverflowCheck(hugeint_t value, double &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:462:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = hugeint_t; DST = float]’ defined but not used [-Wunused-function]
     462 | bool TryCastWithOverflowCheck(hugeint_t value, float &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:457:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = hugeint_t; DST = uhugeint_t]’ defined but not used [-Wunused-function]
     457 | bool TryCastWithOverflowCheck(hugeint_t value, uhugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:452:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = hugeint_t; DST = long unsigned int]’ defined but not used [-Wunused-function]
     452 | bool TryCastWithOverflowCheck(hugeint_t value, uint64_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:447:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = hugeint_t; DST = unsigned int]’ defined but not used [-Wunused-function]
     447 | bool TryCastWithOverflowCheck(hugeint_t value, uint32_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:442:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = hugeint_t; DST = short unsigned int]’ defined but not used [-Wunused-function]
     442 | bool TryCastWithOverflowCheck(hugeint_t value, uint16_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:437:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = hugeint_t; DST = unsigned char]’ defined but not used [-Wunused-function]
     437 | bool TryCastWithOverflowCheck(hugeint_t value, uint8_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:432:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = hugeint_t; DST = long int]’ defined but not used [-Wunused-function]
 bool TryCastWithOverflowCheck(hugeint_t value, int64_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:427:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = hugeint_t; DST = int]’ defined but not used [-Wunused-function]
     427 | bool TryCastWithOverflowCheck(hugeint_t value, int32_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:422:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = hugeint_t; DST = short int]’ defined but not used [-Wunused-function]
     422 | bool TryCastWithOverflowCheck(hugeint_t value, int16_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:417:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = hugeint_t; DST = signed char]’ defined but not used [-Wunused-function]
     417 | bool TryCastWithOverflowCheck(hugeint_t value, int8_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:408:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = hugeint_t; DST = hugeint_t]’ defined but not used [-Wunused-function]
     408 | bool TryCastWithOverflowCheck(hugeint_t value, hugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:403:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = double; DST = hugeint_t]’ defined but not used [-Wunused-function]
     403 | bool TryCastWithOverflowCheck(double value, hugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:398:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = float; DST = hugeint_t]’ defined but not used [-Wunused-function]
     398 | bool TryCastWithOverflowCheck(float value, hugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:393:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = long unsigned int; DST = hugeint_t]’ defined but not used [-Wunused-function]
     393 | bool TryCastWithOverflowCheck(uint64_t value, hugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:388:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = unsigned int; DST = hugeint_t]’ defined but not used [-Wunused-function]
     388 | bool TryCastWithOverflowCheck(uint32_t value, hugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:383:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&
duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:383:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = short unsigned int; DST = hugeint_t]’ defined but not used [-Wunused-function]
     383 | bool TryCastWithOverflowCheck(uint16_t value, hugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:378:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = unsigned char; DST = hugeint_t]’ defined but not used [-Wunused-function]
     378 | bool TryCastWithOverflowCheck(uint8_t value, hugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:373:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = long int; DST = hugeint_t]’ defined but not used [-Wunused-function]
     373 | bool TryCastWithOverflowCheck(int64_t value, hugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:368:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = int; DST = hugeint_t]’ defined but not used [-Wunused-function]
     368 | bool TryCastWithOverflowCheck(int32_t value, hugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:363:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = short int; DST = hugeint_t]’ defined but not used [-Wunused-function]
     363 | bool TryCastWithOverflowCheck(int16_t value, hugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:358:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = signed char; DST = hugeint_t]’ defined but not used [-Wunused-function]
     358 | bool TryCastWithOverflowCheck(int8_t value, hugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:348:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = bool; DST = uhugeint_t]’ defined but not used [-Wunused-function]
     348 | bool TryCastWithOverflowCheck(bool input, uhugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:341:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = bool; DST = hugeint_t]’ defined but not used [-Wunused-function]
     341 | bool TryCastWithOverflowCheck(bool input, hugeint_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:335:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = bool; DST = double]’ defined but not used [-Wunused-function]
     335 | bool TryCastWithOverflowCheck(bool value, double &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:329:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = bool; DST = float]’ defined but not used [-Wunused-function]
 bool TryCastWithOverflowCheck(bool value, float &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:323:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = bool; DST = long unsigned int]’ defined but not used [-Wunused-function]
     323 | bool TryCastWithOverflowCheck(bool value, uint64_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:317:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = bool; DST = unsigned int]’ defined but not used [-Wunused-function]
     317 | bool TryCastWithOverflowCheck(bool value, uint32_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:311:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = bool; DST = short unsigned int]’ defined but not used [-Wunused-function]
     311 | bool TryCastWithOverflowCheck(bool value, uint16_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:305:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = bool; DST = unsigned char]’ defined but not used [-Wunused-function]
     305 | bool TryCastWithOverflowCheck(bool value, uint8_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:299:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = bool; DST = long int]’ defined but not used [-Wunused-function]
     299 | bool TryCastWithOverflowCheck(bool value, int64_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:293:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = bool; DST = int]’ defined but not used [-Wunused-function]
     293 | bool TryCastWithOverflowCheck(bool value, int32_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:287:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = bool; DST = short int]’ defined but not used [-Wunused-function]
     287 | bool TryCastWithOverflowCheck(bool value, int16_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:281:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = bool; DST = signed char]’ defined but not used [-Wunused-function]
     281 | bool TryCastWithOverflowCheck(bool value, int8_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:272:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = uhugeint_t; DST = bool]’ defined but not used [-Wunused-function]
     272 | bool TryCastWithOverflowCheck(uhugeint_t input, bool &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:266:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = hugeint_t; DST = bool]’ defined but not used [-Wunused-function]
     266 | bool TryCastWithOverflowCheck(hugeint_t input, bool &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:260:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:260:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = double; DST = bool]’ defined but not used [-Wunused-function]
     260 | bool TryCastWithOverflowCheck(double value, bool &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:254:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = float; DST = bool]’ defined but not used [-Wunused-function]
     254 | bool TryCastWithOverflowCheck(float value, bool &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:248:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = long unsigned int; DST = bool]’ defined but not used [-Wunused-function]
     248 | bool TryCastWithOverflowCheck(uint64_t value, bool &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:242:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = unsigned int; DST = bool]’ defined but not used [-Wunused-function]
     242 | bool TryCastWithOverflowCheck(uint32_t value, bool &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:236:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = short unsigned int; DST = bool]’ defined but not used [-Wunused-function]
     236 | bool TryCastWithOverflowCheck(uint16_t value, bool &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:230:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = unsigned char; DST = bool]’ defined but not used [-Wunused-function]
     230 | bool TryCastWithOverflowCheck(uint8_t value, bool &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:224:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = long int; DST = bool]’ defined but not used [-Wunused-function]
     224 | bool TryCastWithOverflowCheck(int64_t value, bool &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:218:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = int; DST = bool]’ defined but not used [-Wunused-function]
     218 | bool TryCastWithOverflowCheck(int32_t value, bool &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:212:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = short int; DST = bool]’ defined but not used [-Wunused-function]
     212 | bool TryCastWithOverflowCheck(int16_t value, bool &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:206:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = signed char; DST = bool]’ defined but not used [-Wunused-function]
 bool TryCastWithOverflowCheck(int8_t value, bool &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:200:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = bool; DST = bool]’ defined but not used [-Wunused-function]
     200 | bool TryCastWithOverflowCheck(bool value, bool &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:183:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = double; DST = float]’ defined but not used [-Wunused-function]
     183 | bool TryCastWithOverflowCheck(double input, float &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:177:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = double; DST = double]’ defined but not used [-Wunused-function]
     177 | bool TryCastWithOverflowCheck(double input, double &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:172:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = float; DST = double]’ defined but not used [-Wunused-function]
     172 | bool TryCastWithOverflowCheck(float input, double &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:167:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = float; DST = float]’ defined but not used [-Wunused-function]
     167 | bool TryCastWithOverflowCheck(float input, float &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:163:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = double; DST = long unsigned int]’ defined but not used [-Wunused-function]
     163 | bool TryCastWithOverflowCheck(double value, uint64_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:158:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = double; DST = unsigned int]’ defined but not used [-Wunused-function]
     158 | bool TryCastWithOverflowCheck(double value, uint32_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:153:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = double; DST = short unsigned int]’ defined but not used [-Wunused-function]
     153 | bool TryCastWithOverflowCheck(double value, uint16_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:148:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = double; DST = unsigned char]’ defined but not used [-Wunused-function]
     148 | bool TryCastWithOverflowCheck(double value, uint8_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:143:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = double; DST = long int]’ defined but not used [-Wunused-function]
     143 | bool TryCastWithOverflowCheck(double value, int64_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:138:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = double; DST = int]’ defined but not used [-Wunused-function]
     138 | bool TryCastWithOverflowCheck(double value, int32_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:133:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = double; DST = short int]’ defined but not used [-Wunused-function]
     133 | bool TryCastWithOverflowCheck(double value, int16_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:128:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = double; DST = signed char]’ defined but not used [-Wunused-function]
     128 | bool TryCastWithOverflowCheck(double value, int8_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:123:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = float; DST = long unsigned int]’ defined but not used [-Wunused-function]
     123 | bool TryCastWithOverflowCheck(float value, uint64_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:118:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = float; DST = unsigned int]’ defined but not used [-Wunused-function]
     118 | bool TryCastWithOverflowCheck(float value, uint32_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:113:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = float; DST = short unsigned int]’ defined but not used [-Wunused-function]
     113 | bool TryCastWithOverflowCheck(float value, uint16_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:108:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = float; DST = unsigned char]’ defined but not used [-Wunused-function]
     108 | bool TryCastWithOverflowCheck(float value, uint8_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:102:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = float; DST = long int]’ defined but not used [-Wunused-function]
     102 | bool TryCastWithOverflowCheck(float value, int64_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:97:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = float; DST = int]’ defined but not used [-Wunused-function]
      97 | bool TryCastWithOverflowCheck(float value, int32_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:92:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = float; DST = short int]’ defined but not used [-Wunused-function]
      92 | bool TryCastWithOverflowCheck(float value, int16_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   duckdb/src/include/duckdb/common/operator/numeric_cast.hpp:87:6: warning: ‘bool duckdb::TryCastWithOverflowCheck(SRC, DST&) [with SRC = float; DST = signed char]’ defined but not used [-Wunused-function]
      87 | bool TryCastWithOverflowCheck(float value, int8_t &result) {
         |      ^~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions