Do a pure/const/noreturn/format attribute pass.

I always wanted these, but as gcc now provides warnings for functions that
could do with such attributes, finding all the functions is much easier.
This commit is contained in:
Bill Currie 2018-10-09 12:35:01 +09:00
parent 05fd2d8cdd
commit 34bcf7faab
118 changed files with 332 additions and 314 deletions

View file

@ -71,7 +71,7 @@ extern vrect_t scr_vrect;
extern qboolean scr_skipupdate;
float CalcFov (float fov_x, float width, float height);
float CalcFov (float fov_x, float width, float height) __attribute__((const));
void SCR_SetUpToDrawConsole (void);
void SCR_ScreenShot_f (void);