Skip to content
Snippets Groups Projects
Commit b497d29e 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 d7fa0c03
No related branches found
No related tags found
No related merge requests found
......@@ -2689,7 +2689,7 @@ read_pbm(const char *fn, bool bitmap)
{
uintmax_t width;
uintmax_t height;
uintmax_t maxval;
uintmax_t maxval = 0;
uintmax_t overflow;
FILE *f = fopen(fn, "rb");
struct ciolib_mask *mret = NULL;
......@@ -3612,7 +3612,7 @@ doterm(struct bbslist *bbs)
BYTE zrqinit[] = {ZDLE, ZHEX, '0', '0', 0}; /* for Zmodem auto-downloads */
BYTE zrinit[] = {ZDLE, ZHEX, '0', '1', 0}; /* for Zmodem auto-uploads */
BYTE zrqbuf[sizeof(zrqinit)];
int inch;
int inch = NOINP;
long double nextchar = 0;
long double lastchar = 0;
long double thischar = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment