Yo Hal! On Tue, 20 Jun 2023 12:57:40 -0700 Hal Murray via devel <devel@ntpsec.org> wrote:
> Is anybdy familiar with this area? > Is this something I did? Or are others seeing the same problem? > (I might have turned on some more-warnings flag, but I don't think > so.) > > ../../tests/unity/unity.c:984:5: warning: enumeration value > \u2018UNITY_FLOAT_INVALID_TRAIT\u2019 not handled in switch > [-Wswitch-enum] ../../tests/unity/unity.c:1124:5: warning: > enumeration value \u2018UNITY_FLOAT_INVALID_TRAIT\u2019 not handled > in switch [-Wswitch-enum] That usually means there is no "default:" case in a switch. > -------- > > Speaking of warnings, some versions of OpenSSL and/or some compilers > generate this: > > /usr/local/ssl/include/openssl/ssl.h:1491:53: warning: cast discards > "const" qualifier from pointer target type [-Wcast-qual] Simple, just a bad cast. But since it is in a system header, not easy to fix. > I've looked into it a bit and don't understand what's going on. I > think our code is OK. This is passing a string literal through a > maze of macros. I've decided not to spend much time on this since it > doesn't happen with newer OpenSSL and/or compilers. A string literal is (const char *), but you are passing that as a (char *). Just be real sure that string is not modified by the called function. RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703 g...@rellim.com Tel:+1 541 382 8588 Veritas liberabit vos. -- Quid est veritas? "If you can't measure it, you can't improve it." - Lord Kelvin
pgpVFcNe_S1_e.pgp
Description: OpenPGP digital signature
_______________________________________________ devel mailing list devel@ntpsec.org https://lists.ntpsec.org/mailman/listinfo/devel