Foxotron icon indicating copy to clipboard operation
Foxotron copied to clipboard

error: ordered comparison of function pointers

Open yurivict opened this issue 2 years ago • 0 comments

Build breaks:

/usr/ports/graphics/foxotron/work/Foxotron-2022-11-02/externals/assimp/code/Common/Assimp.cpp:78:28: error: ordered comparison of function pointers ('aiLogStreamCallback' (aka 'void (*)(const char *, char *)') and 'aiLogStreamCallback') [-Werror,-Wordered-compare-function-pointers]
        return s0.callback < s1.callback && s0.user < s1.user;
               ~~~~~~~~~~~ ^ ~~~~~~~~~~~
1 error generated.

The failure is in the assimp module due to -Werror.

We have the assimp package, it just should be used to prevent problems like this. assimp-5.2.5 doesn't have such warning.

clang-14 FreeBSD 13.1

yurivict avatar Feb 19 '23 04:02 yurivict