Warnings (was: Subsurface libdivecomputer branch merged with upstream..)

Lubomir I. Ivanov neolit123 at gmail.com
Fri Dec 15 04:49:16 PST 2017


On 15 December 2017 at 11:24, Berthold Stoeger
<bstoeger at mail.tuwien.ac.at> wrote:
> On Mittwoch, 13. Dezember 2017 23:34:32 CET Dirk Hohndel wrote:
>> > On Dec 13, 2017, at 11:31 AM, Berthold Stoeger
>> > <bstoeger at mail.tuwien.ac.at> wrote:>
>> > PS: compilation of libdivecomputer produces tons of warnings. :-o
>>
>> Yes, Jef cranked up the warning level quite a bit.
>> I actually removed two of them (-Wextra and -Wpedantic) to keep things at
>> least somewhat manageable, but it is noisy.
>
> Speaking of warnings: how about compiling subsurface with -Wall as a default?
> At least on gcc it's pretty clean and only seems to address real issues.
>
> Concerning the float warning, I have a patch that turns all float calculations
> into double calculations sitting around for a few weeks. I think float is like
> short: only to be used in very specific circumstances. But I'll let the pros
> decide.
>

i think i have proposed -Wall on numerous occasions.
the float->double patch looks good to me but i haven't tested it.

lubomir
--


More information about the subsurface mailing list