Erin on Nostr: was wondering about "fixing" -Wfloat-equal warning spam from a function that has ...
was wondering about "fixing" -Wfloat-equal warning spam from a function that has literally hundreds of template expansions (yay enumerations) and is testing to see if a value changes at all (as a trigger) and am honestly kind of relieved to have found quite a bit of "this warning is harmful; == and != aren't at fault, arithmetic is"
I've floated disabling the warning for that line with a pragma to my team, because they Know Better than me still. I need a lot more time with C++ still.
Published at
2025-06-10 21:13:28 UTCEvent JSON
{
"id": "f51ed666ae02e2b7549d38e4a2d910d83bd8b006445d33f948daf559f4e5bc18",
"pubkey": "1b14d3bebb398deb549e4384bfb90d947519616d99706e4ed3b16ae61c3a931e",
"created_at": 1749590008,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/@ChateauErin/114661130781436965",
"web"
],
[
"proxy",
"https://mastodon.social/users/ChateauErin/statuses/114661130781436965",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/ChateauErin/statuses/114661130781436965",
"pink.momostr"
],
[
"-"
]
],
"content": "was wondering about \"fixing\" -Wfloat-equal warning spam from a function that has literally hundreds of template expansions (yay enumerations) and is testing to see if a value changes at all (as a trigger) and am honestly kind of relieved to have found quite a bit of \"this warning is harmful; == and != aren't at fault, arithmetic is\"\n\nI've floated disabling the warning for that line with a pragma to my team, because they Know Better than me still. I need a lot more time with C++ still.",
"sig": "9e7ad23360586a9b8e4a81c7a6c8eb1be57c5c8922c9a8443903487701867e1a5ff47332fb5e28742bfdb8ee9db89f6a8633f2ba91d175dcea03859c99842b8b"
}