diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-06-13 18:27:10 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-06-13 23:27:20 -0700 |
commit | 3e3032cfa044268cee76735823755db274025021 (patch) | |
tree | ead68726685be0e1b6fdccd5c78f132dfb093517 /src/modules/plato | |
parent | 2825d01bf16f8b22f8eb9b92b2c21a654c13e563 (diff) |
*: smattering of random small fixes to silence -Wall
I thought the build was already using -Wall but that seems to not
be the case, maybe got lost somewhere along the line or messed up
in configure.ac
After forcing a build with -Wall -Werror, these showed up.
Fixed up in the obvious way, nothing too scary.
Diffstat (limited to 'src/modules/plato')
-rw-r--r-- | src/modules/plato/plato.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/plato/plato.c b/src/modules/plato/plato.c index 5551268..f43eda3 100644 --- a/src/modules/plato/plato.c +++ b/src/modules/plato/plato.c @@ -524,6 +524,8 @@ static inline m4f_t m4f_rotate(const m4f_t *m, const v3f_t *axis, float radians) return m4f_mult(m, &rotate); } +#if 0 +/* these aren't currently used, but may come in handy later */ /* this is a simple perpsective projection matrix taken from an opengl tutorial */ static inline m4f_t m4f_frustum(float bot, float top, float left, float right, float nnear, float ffar) @@ -565,7 +567,7 @@ static inline uint32_t color_to_uint32(v3f_t color) { return pixel; } - +#endif static void draw_line(til_fb_fragment_t *fragment, int x1, int y1, int x2, int y2) { @@ -742,7 +744,6 @@ static int plato_setup(const til_settings_t *settings, til_setting_t **res_setti if (res_setup) { plato_setup_t *setup; - int i; setup = til_setup_new(settings, sizeof(*setup), NULL); if (!setup) |