mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 08:41:11 +00:00
[build] Fix a pile of gcc 10 issues
gcc got stricter about array accesses, complicating progs macros, and much better at detecting buffer overflows.
This commit is contained in:
parent
af814ff9a8
commit
ab04a1915e
30 changed files with 125 additions and 107 deletions
|
@ -142,7 +142,12 @@ extern const vec_t *const vec3_origin;
|
|||
} while (0)
|
||||
|
||||
#define VectorIsZero(a) (!(a)[0] && !(a)[1] && !(a)[2])
|
||||
#define VectorZero(a) ((a)[2] = (a)[1] = (a)[0] = 0);
|
||||
#define VectorZero(a) \
|
||||
do { \
|
||||
(a)[0] = 0; \
|
||||
(a)[1] = 0; \
|
||||
(a)[2] = 0; \
|
||||
} while (0)
|
||||
#define VectorSet(a,b,c,d) \
|
||||
do { \
|
||||
(d)[0] = a; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue