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

more strictdef fixes for stdlibs #24535

Merged
merged 1 commit into from
Dec 13, 2024
Merged

more strictdef fixes for stdlibs #24535

merged 1 commit into from
Dec 13, 2024

Conversation

ringabout
Copy link
Member

No description provided.

@@ -362,7 +362,7 @@ when not defined(js) and not defined(nimscript):
proc equalsFile*(r: Rope, f: File): bool {.rtl, extern: "nro$1File".} =
## Returns true if the contents of the file `f` equal `r`.
var
buf: array[bufSize, char]
buf: array[bufSize, char] = default(array[bufSize, char])
Copy link
Member

@Araq Araq Dec 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
buf: array[bufSize, char] = default(array[bufSize, char])
buf {.noinit.}: array[bufSize, char]

Do this in a follow-up PR.

@Araq Araq merged commit d31cce5 into devel Dec 13, 2024
21 checks passed
@Araq Araq deleted the pr_strictdefs_docs branch December 13, 2024 18:06
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from d31cce5

Hint: mm: orc; opt: speed; options: -d:release
178101 lines; 8.648s; 653.789MiB peakmem

narimiran pushed a commit that referenced this pull request Jan 14, 2025
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.

2 participants