| Summary: | lots of strict aliasing warnings | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ozkan Sezer <sezeroz> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | mednafen |
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Attachments: |
warnings log from gcc-4.5.4
patch to revert typecast assingment changes patch to revert typecast assignment changes patch to revert typecast assignment changes |
||
*sigh* These were changed to fix ISO C99 pedantic warnings in GCC 5. Is there a way to cast from void* to function pointer that works with both compilers in strict mode? Not that I know of. (apart from 'don't use -pedantic', of course..) Created attachment 3165 [details]
patch to revert typecast assingment changes
I am using the attached patch to revert typecast assignment changes
for the time being.
Perhaps memcpy() Created attachment 3166 [details]
patch to revert typecast assignment changes
(Attaching the correct version of the patch tis time.)
Created attachment 3167 [details]
patch to revert typecast assignment changes
3rd revision of the patch to revert typecast assignment changes:
Also changes the void* typedefs for the two vulkan function pointers
added in vulkan_internal.h into generic C function pointer typedefs.
Okay, pedantic warnings are better than strict aliasing warnings. https://hg.libsdl.org/SDL/rev/e917e911dab6 Thanks! |
Created attachment 3163 [details] warnings log from gcc-4.5.4 FYI: A _horde_ of strict aliasing warnings are emitted from older gcc, such as gcc-4.3 or -4.5, after the recent typecast assignment changes. Log from gcc-4.5 is attached.