Skip to content

fix: compiler warnings in dg_scripts.cpp (#3104)#3105

Merged
bylins merged 1 commit intomasterfrom
fix/dg-scripts-warnings
Apr 6, 2026
Merged

fix: compiler warnings in dg_scripts.cpp (#3104)#3105
bylins merged 1 commit intomasterfrom
fix/dg-scripts-warnings

Conversation

@bylins
Copy link
Copy Markdown
Owner

@bylins bylins commented Apr 6, 2026

Summary

  • sizeof(tmp) на указатель → sizeof(tmpname) на массив (строка 344)
  • snprintf(str, size, "") × 8 мест → *str = '\0'
  • snprintf(buf, size, line)snprintf(buf, size, "%s", line) (строка 3888)

Closes #3104

🤖 Generated with Claude Code

- sizeof(tmp) на указатель -> sizeof(tmpname) на массив
- snprintf(str, size, "") пустой формат -> *str = '\0'
- snprintf(buf, size, line) формат не литерал -> snprintf(buf, size, "%s", line)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bylins bylins force-pushed the fix/dg-scripts-warnings branch from 3756133 to b80470d Compare April 6, 2026 06:10
@bylins bylins merged commit 00efb00 into master Apr 6, 2026
20 checks passed
@bylins bylins deleted the fix/dg-scripts-warnings branch April 6, 2026 06:46
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

Successfully merging this pull request may close these issues.

варнинги

1 participant