servalproject / serval-dna

The Serval Project's core daemon that implements Distributed Numbering Architecture (DNA), MDP, VoMP, Rhizome, MeshMS, etc.
http://servalproject.org
Other
170 stars 81 forks source link

Fix compilation warnings with GCC 11.0.1 #147

Open AzureCrimson opened 3 years ago

AzureCrimson commented 3 years ago

I fixed the following error messages by applying an upstream optimization, the specific commit can be found here https://sqlite.org/src/info/e95138f5f4febde5

error: implicit conversion from 'long long' to 'double' changes valuefrom 9223372036854775806 to 9223372036854775808 [-Werror,-Wimplicit-const-int-float-conversion] if( n==0 && r>=0 && r<LARGEST_INT64-1 ){ error: implicit conversion from 'long long' to 'double' changes value from 9223372036854775806 to 9223372036854775808 [-Werror,-Wimplicit-const-int-float-conversion] }else if( n==0 && r<0 && (-r)<LARGEST_INT64-1 ){