Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler warning is Version 2.3.0e #75

Open
ballle98 opened this issue May 29, 2023 · 0 comments
Open

Compiler warning is Version 2.3.0e #75

ballle98 opened this issue May 29, 2023 · 0 comments

Comments

@ballle98
Copy link
Owner

OS: 11 (bullseye)
GLIBC build with: ldd (Debian GLIBC 2.31-13+rpt2+rpi1+deb11u5) 2.31
GLIBC Prefered  : 2.24-11+deb9u1 2.24
GIT_HASH: e8b383d

aq_panel.c: In function ‘setPanelString’:
aq_panel.c:115:38: warning: ‘%s’ directive writing up to 15 bytes into a region of size between 0 and 33 [-Wformat-overflow=]
  115 |   sprintf(_panelString, "%s%s-%d %s%s%s",
      |                                      ^~
aq_panel.c:115:3: note: ‘sprintf’ output between 4 and 52 bytes into a destination of size 36
  115 |   sprintf(_panelString, "%s%s-%d %s%s%s",
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  116 |       isRS_PANEL?"RS":"",
      |       ~~~~~~~~~~~~~~~~~~~
  117 |       isPDA_PANEL?"PDA":"", // No need for both of these, but for error validation leave it in.
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  118 |       PANEL_SIZE(),
      |       ~~~~~~~~~~~~~
  119 |       isCOMBO_PANEL?"Combo Pool/Spa":"",
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  120 |       isSINGLE_DEV_PANEL?"Pool/Spa Only":"",
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  121 |       isDUAL_EQPT_PANEL?" Dual Equipment":"");
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

mongoose.c: In function ‘mg_send_ssi_file.part.0’:
mongoose.c:9350:40: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
 9350 |     snprintf(path, sizeof(path), "%s/%s", opts->document_root, file_name);
      |                                        ^
mongoose.c:9350:5: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
 9350 |     snprintf(path, sizeof(path), "%s/%s", opts->document_root, file_name);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

pda_aq_programmer.c: In function ‘set_aqualink_PDA_device_on_off’:
pda_aq_programmer.c:592:7: warning: implicit declaration of function ‘force_queue_delete’ [-Wimplicit-function-declaration]
  592 |       force_queue_delete(); // NSF This is a really shit thing to do.  Need to fix this
      |       ^~~~~~~~~~~~~~~~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant