3 ms·
> Just tell GCC to shut up and try again, if persistent make an issue in GH. That seems like a cavalier approach to type warnings. Sure, it may not be an issue
by PeterWhittaker 4y ago
> Just tell GCC to shut up and try again, if persistent make an issue in GH.
That seems like a cavalier approach to type warnings. Sure, it may not be an issue, most of the time, but type warnings are there to highlight/suggest potentially bad code, e.g., poorly thought out or insufficient consideration given to typing, overflows, etc.
For a one-off or bit of hobby code, I'm quite happy to compile without warnings and/or to ignore whatever warnings my code generates, but for something I am sharing with others, especially releasing and hoping they will adopt, I crank the warnings to 11 and make sure compiles are clean, without pragmas.
- shogundev 4y agoThe code compiles and runs very cleanly and smoothly under win32 and linux mint. This is probably an issue of size_t being different sized in a platform or the code using int64_t everywhere but int is 32 bit. Thanks (and is not ironic). Shogun
- PeterWhittaker 4y agoPerhaps use zu instead of d as the format specifier for size_t types?