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

Unreferenced allocs should not be marked #58

Open
UnlimitedChild opened this issue Apr 27, 2023 · 1 comment
Open

Unreferenced allocs should not be marked #58

UnlimitedChild opened this issue Apr 27, 2023 · 1 comment

Comments

@UnlimitedChild
Copy link

Hello,

---=[ GC tests
Unreferenced allocs should not be marked
Tests run: 6

1>U:\GarbageCollection\DebugTest\gc.c(170,5): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 5 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(170,5): message : consider using '%zd' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(170,5): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 6 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(170,5): message : consider using '%zd' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(177,5): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 5 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(177,5): message : consider using '%zd' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(177,5): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 6 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(177,5): message : consider using '%zd' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(207,5): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 5 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(207,5): message : consider using '%zd' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(207,5): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 6 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(207,5): message : consider using '%zd' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(207,5): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 7 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(207,5): message : consider using '%zd' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(224,32): warning C4244: '=': conversion from 'double' to 'size_t', possible loss of data
1>U:\GarbageCollection\DebugTest\gc.c(264,5): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 5 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(264,5): message : consider using '%zd' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(281,13): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 5 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(281,13): message : consider using '%zd' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(293,5): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 5 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(293,5): message : consider using '%zd' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(354,9): warning C4477: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 5 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(354,9): message : consider using '%zu' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(491,5): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 5 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(491,5): message : consider using '%zd' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(491,5): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 6 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(491,5): message : consider using '%zd' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(513,9): warning C4477: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 6 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(513,9): message : consider using '%zu' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(517,13): warning C4477: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 6 has type '__int64'
1>U:\GarbageCollection\DebugTest\gc.c(517,13): message : consider using '%llu' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(517,13): message : consider using '%Iu' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(517,13): message : consider using '%I64u' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(526,5): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 6 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(526,5): message : consider using '%zd' in the format string
1>U:\GarbageCollection\DebugTest\gc.c(580,17): warning C4477: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 6 has type 'size_t'
1>U:\GarbageCollection\DebugTest\gc.c(580,17): message : consider using '%zu' in the format string
1>Generating Code...
1>DebugTest.vcxproj -> U:\GarbageCollection\x64\Debug\GarbageCollection.exe
1>Done building project "DebugTest.vcxproj".
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

@mkirchner
Copy link
Owner

Hi @UnlimitedChild, thank you for raising this. As mentioned in the README, the project currently only supports gcc and clang builds, hence the error messages on VisualStudio.

Happy to take PRs from someone on windows to remove that limitation.

-M

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

2 participants