mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 08:20:40 +00:00
Fix some issues found by gcc's -flto
More const/pure stuff and even some type issues.
This commit is contained in:
parent
748bd377c6
commit
114f564a98
6 changed files with 10 additions and 10 deletions
|
@ -242,7 +242,7 @@ edges_intersect (const vec3_t p1, const vec3_t p2,
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
static bool __attribute__((pure))
|
||||
trace_hits_portal (const hull_t *hull, const trace_t *trace,
|
||||
clipport_t *portal, const vec3_t start, const vec3_t vel)
|
||||
{
|
||||
|
@ -274,7 +274,7 @@ trace_hits_portal (const hull_t *hull, const trace_t *trace,
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
static bool __attribute__((pure))
|
||||
trace_enters_leaf (hull_t *hull, trace_t *trace, clipleaf_t *leaf,
|
||||
plane_t *plane, const vec3_t vel, const vec3_t org)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue