subsoap / defos

Extra native OS functions for games written using the Defold game engine
Creative Commons Zero v1.0 Universal
112 stars 16 forks source link

Clang 9 requirements #107

Closed subsoap closed 4 years ago

subsoap commented 4 years ago

Changes requested by Defold team

subsoap commented 4 years ago

https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569

:warning:Important: Set the build server in the Preferences:

https://build-stage.defold.com

I have not tested this yet but will soon.

subsoap commented 4 years ago

Tested building on

https://build-stage.defold.com

and

https://build.defold.com

Both work.

This change only disables this warning

error: non-constant-expression cannot be narrowed from type 'LONG' (aka 'long') to 'float' in initializer list [-Wc++11-narrowing]

@dapetcu21 You can merge this if you do not think anything needs to be done to the code itself.

dapetcu21 commented 4 years ago

I'd prefer to actually fix the errors instead of disabling the warning. I'll take a look this evening.

dapetcu21 commented 4 years ago

Fixed by adding some casts