Skip to content
Snippets Groups Projects
Commit a47f94b8 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix GCC v12.2.0 -O1 warnings

warning: ‘maxval’ may be used uninitialized
warning: ‘inch’ may be used uninitialized
parent 10fac7f3
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -2689,7 +2689,7 @@ read_pbm(const char *fn, bool bitmap) ...@@ -2689,7 +2689,7 @@ read_pbm(const char *fn, bool bitmap)
{ {
uintmax_t width; uintmax_t width;
uintmax_t height; uintmax_t height;
uintmax_t maxval; uintmax_t maxval = 0;
uintmax_t overflow; uintmax_t overflow;
FILE *f = fopen(fn, "rb"); FILE *f = fopen(fn, "rb");
struct ciolib_mask *mret = NULL; struct ciolib_mask *mret = NULL;
...@@ -3612,7 +3612,7 @@ doterm(struct bbslist *bbs) ...@@ -3612,7 +3612,7 @@ doterm(struct bbslist *bbs)
BYTE zrqinit[] = {ZDLE, ZHEX, '0', '0', 0}; /* for Zmodem auto-downloads */ BYTE zrqinit[] = {ZDLE, ZHEX, '0', '0', 0}; /* for Zmodem auto-downloads */
BYTE zrinit[] = {ZDLE, ZHEX, '0', '1', 0}; /* for Zmodem auto-uploads */ BYTE zrinit[] = {ZDLE, ZHEX, '0', '1', 0}; /* for Zmodem auto-uploads */
BYTE zrqbuf[sizeof(zrqinit)]; BYTE zrqbuf[sizeof(zrqinit)];
int inch; int inch = NOINP;
long double nextchar = 0; long double nextchar = 0;
long double lastchar = 0; long double lastchar = 0;
long double thischar = 0; long double thischar = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment