diff options
| author | dario-loi <loi.1940849@studenti.uniroma1.it> | 2024-11-27 14:26:58 +0100 |
|---|---|---|
| committer | dario-loi <loi.1940849@studenti.uniroma1.it> | 2024-11-27 14:28:07 +0100 |
| commit | 528209831fc8f188df895acae83174bb81996c96 (patch) | |
| tree | 84f143235b5e1e6f1d9d06764ac35addd4b97f5e /examples/red.c | |
| parent | eff7f86c4b81e804b13c5606fcc73a6dbfa58677 (diff) | |
Code quality and warning removal
Solved all code quality issues, removed dead code.
Correctly freed fps buffer in texture_show_fps.c
Correctly checked for argc size before accessing argv (did not show up
in warnings but it's still dangerous)
Reordered some resource acquisition operations in examples in order to
avoid framebuffer creation if wrong inputs are specified (we fail
first).
Diffstat (limited to 'examples/red.c')
| -rw-r--r-- | examples/red.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/red.c b/examples/red.c index c074143..8240cf4 100644 --- a/examples/red.c +++ b/examples/red.c @@ -2,7 +2,7 @@ #include "fbgl.h" #include <stdio.h> -int main(int argc, char *argv[]) +int main(void) { fbgl_t fb; fbgl_init("/dev/fb0", &fb); |
