Fix clang warnings

Former-commit-id: c4f086ae936e1ba5ed97c2f0810ddb6a4de25be6
This commit is contained in:
John Sully 2019-10-13 15:48:55 -04:00
parent 1a3885cad0
commit 091a93e098
3 changed files with 5 additions and 5 deletions

View File

@ -46,13 +46,13 @@
#define ECCENT (sqrt(1.0 - (RATIO *RATIO)))
#define COM (0.5 * ECCENT)
/// @brief The usual PI/180 constant
const double DEG_TO_RAD = 0.017453292519943295769236907684886;
/// @brief Earth's quatratic mean radius for WGS-84
const double EARTH_RADIUS_IN_METERS = 6372797.560856;
const double MERCATOR_MAX = 20037726.37;
#if 0 //unused
const double MERCATOR_MIN = -20037726.37;
#endif
static inline double deg_rad(double ang) { return ang * D_R; }
static inline double rad_deg(double ang) { return ang / D_R; }

View File

@ -1042,7 +1042,7 @@ typedef struct clientReplyBlock {
struct dictEntry;
class dict_const_iter
{
friend class redisDb;
friend struct redisDb;
friend class redisDbPersistentData;
protected:
dictEntry *de;

View File

@ -219,9 +219,9 @@ int setTypeRandomElement(robj *setobj, sds *sdsele, int64_t *llele) {
return setobj->encoding;
}
int setTypeRandomElement(robj_roptr setobj, const char **sdsele, const int64_t *llele)
int setTypeRandomElement(robj_roptr setobj, const char **sdsele, int64_t *llele)
{
return setTypeRandomElement(setobj.unsafe_robjcast(), (sds*)sdsele, const_cast<int64_t*>(llele));
return setTypeRandomElement(setobj.unsafe_robjcast(), (sds*)sdsele, llele);
}
unsigned long setTypeSize(robj_roptr subject) {