Skip to content

Warnings on Windows GCC in header code #429

@correaa

Description

@correaa

This is similar to the previous issue but on Windows GCC,

https://github.com/correaa/boost-multi/actions/runs/10067263974/job/27830388396?pr=56#step:4:8634

gcc.compile.c++ bin.v2\libs\boost-multi\test\zero_dimensionality.test\gcc-8\release\x86_64\cxxstd-2a-iso\link-static\threadapi-win32\threading-multi\visibility-hidden\zero_dimensionality.o
In file included from ./boost/test/included/unit_test.hpp:20,
                 from libs/boost-multi/test/zero_dimensionality.cpp:25:
./boost/test/impl/debug.ipp: In instantiation of 'void boost::debug::{anonymous}::dyn_symbol(T&, const char*, const char*) [with T = int (*)()]':
./boost/test/impl/debug.ipp:167:72:   required from here
./boost/test/impl/debug.ipp:143:11: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'int (*)()' [-Werror=cast-function-type]
     res = reinterpret_cast<T>( ::GetProcAddress( m, symbol_name ) );
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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