Skip to content

Build error on version 1.4.4 with clang #44

@e14tech

Description

@e14tech

System is Gentoo Linux.
The following are my system specs.

Ryzen 3400G
32GB RAM
cmake version 3.31.5
clang version 19.1.7+libcxx
Target: x86_64-pc-linux-gnu
Thread model: posix

Compile error:

[ 67%] Building C object CMakeFiles/Nanosaur.dir/src/QD3D/QD3D_Geometry.c.o
/home/josh/Documents/Projects/git/Nanosaur/src/QD3D/QD3D_Geometry.c: In function ‘ExplodeTriMesh’:
/home/josh/Documents/Projects/git/Nanosaur/src/QD3D/QD3D_Geometry.c:223:39: error: initialization of ‘const uint16_t *’ {aka ‘const short unsigned int *’} from incompatible pointer type ‘uint32_t *’ {aka ‘unsigned int *’} [-Wincompatible-pointer-types]
  223 |                 const uint16_t* ind = inMesh->triangles[t].pointIndices;                                                // get indices of 3 points
      |                                       ^~~~~~
gmake[2]: *** [CMakeFiles/Nanosaur.dir/build.make:373: CMakeFiles/Nanosaur.dir/src/QD3D/QD3D_Geometry.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:109: CMakeFiles/Nanosaur.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions