diff options
| author | Zach Banks <zjbanks@gmail.com> | 2021-05-18 22:28:04 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-18 22:28:04 -0400 |
| commit | dea3c8fd792d29648697f697f34d3658bf3838cf (patch) | |
| tree | 44343b1d23b9eb7f9fc1598da7a7f804528db204 /src/code/z_lights.c | |
| parent | 7f1465991925a27539a1bd5361331b794772efb2 (diff) | |
Fix all warnings raised by IDO (#152)
* Fix all warnings raised by IDO, ignore trailing commas
* Set -woff=624,...; keep const in printf functions
* Remove redefined macros in irqmgr.c
* Remove DECR macro & reformat
* Address PR comments from AngheloAlf
Diffstat (limited to 'src/code/z_lights.c')
| -rw-r--r-- | src/code/z_lights.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/code/z_lights.c b/src/code/z_lights.c index da3b79ae2..161eff724 100644 --- a/src/code/z_lights.c +++ b/src/code/z_lights.c @@ -187,9 +187,16 @@ void Lights_BindDirectional(Lights* lights, LightParams* params, void* unused) { * available in the Lights group. This is at most 7 slots for a new group, but could be less. */ void Lights_BindAll(Lights* lights, LightNode* listHead, Vec3f* refPos, GlobalContext* globalCtx) { - static LightsPosBindFunc posBindFuncs[] = { Lights_BindPoint, Lights_BindDirectional, Lights_BindPoint }; - static LightsBindFunc dirBindFuncs[] = { Lights_BindPointWithReference, Lights_BindDirectional, - Lights_BindPointWithReference }; + static LightsPosBindFunc posBindFuncs[] = { + Lights_BindPoint, + (LightsPosBindFunc)Lights_BindDirectional, + Lights_BindPoint, + }; + static LightsBindFunc dirBindFuncs[] = { + Lights_BindPointWithReference, + (LightsBindFunc)Lights_BindDirectional, + Lights_BindPointWithReference, + }; if (listHead != NULL) { if ((refPos == NULL) && (lights->enablePosLights == 1)) { |
