Fix Clang compiler error and warnings
This commit is contained in:
parent
bd5a6cde4e
commit
b42e2b36ee
@ -240,6 +240,12 @@ if(CMAKE_C_COMPILER_IS_GCC_COMPATIBLE)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
endif()
|
||||
|
||||
# Specific flags for Clang
|
||||
if(CMAKE_COMPILER_IS_CLANG)
|
||||
# Clang on apple-darwin13.4.0 wrongly reports many unused functions
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function")
|
||||
endif()
|
||||
|
||||
# Specific flags for Visual C++
|
||||
if(MSVC)
|
||||
# Treat all files a C source files
|
||||
|
@ -35,6 +35,8 @@ GMIO_INLINE void gmio_cross_product_f64(
|
||||
* Implementation
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
|
||||
void gmio_cross_product_f32(
|
||||
float ux, float uy, float uz,
|
||||
float vx, float vy, float vz,
|
||||
|
Loading…
Reference in New Issue
Block a user