mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-30 19:40:31 -07:00
Small Warnings Refactor (#4477)
* Disable all warnings, even in release, on the `src` directory. Resolve math macro duplication warnings. * Suppress LUS warnings. * Modify it to utilize a variable that defaults on but can be specified in command line to disable it. Prevet total compile option overwrite for LUS. * Remove unnecessary unset and cache parameters. * Document warnings flag in BUILDING.md
This commit is contained in:
parent
fd8e98ed12
commit
108d5061d4
5 changed files with 27 additions and 0 deletions
|
@ -3,9 +3,15 @@
|
|||
|
||||
#include <libultraship/libultra.h>
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846f
|
||||
#endif
|
||||
#ifndef M_SQRT2
|
||||
#define M_SQRT2 1.41421356237309504880f
|
||||
#endif
|
||||
#ifndef FLT_MAX
|
||||
#define FLT_MAX 340282346638528859811704183484516925440.0f
|
||||
#endif
|
||||
#define SHT_MAX 32767.0f
|
||||
#define SHT_MINV (1.0f / SHT_MAX)
|
||||
#define DEGTORAD(x) (x * M_PI / 180.0f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue