-
Notifications
You must be signed in to change notification settings - Fork 194
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
-Wmaybe-uninitialized warnings from gcc-14 #452
Comments
The following one-liner silences it for me: Is it good or may there be any subtleties I'm missing? diff --git a/src/nanosvg.h b/src/nanosvg.h
index 14bbcf4..64d05d6 100644
--- a/src/nanosvg.h
+++ b/src/nanosvg.h
@@ -1686,7 +1686,7 @@ static int nsvg__parseRotate(float* xform, const char* str)
static void nsvg__parseTransform(float* xform, const char* str)
{
- float t[6];
+ float t[6] = { 0 };
int len;
nsvg__xformIdentity(xform);
while (*str) |
Seems like a good fix, thanks! |
Patch applied to SDL3 and SDL2 branches, and also submitted to mainstream at memononen/nanosvg#256 |
Great, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As inlined below
The text was updated successfully, but these errors were encountered: