Changeset 2194


Ignore:
Timestamp:
Jan 2, 2013, 2:30:48 PM (7 years ago)
Author:
sam
Message:

math: mark unused arguments as used in fract().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lol/math/math.h

    r2192 r2194  
    142142static inline ldouble fmod(ldouble x, ldouble y) { return std::fmod(x, y); }
    143143
    144 static inline uint8_t fract(uint8_t x) { return 0; }
    145 static inline int8_t fract(int8_t x) { return 0; }
    146 static inline uint16_t fract(uint16_t x) { return 0; }
    147 static inline int16_t fract(int16_t x) { return 0; }
    148 static inline uint32_t fract(uint32_t x) { return 0; }
    149 static inline int32_t fract(int32_t x) { return 0; }
    150 static inline uint64_t fract(uint64_t x) { return 0; }
    151 static inline int64_t fract(int64_t x) { return 0; }
     144static inline uint8_t fract(uint8_t x) { (void)x; return 0; }
     145static inline int8_t fract(int8_t x) { (void)x; return 0; }
     146static inline uint16_t fract(uint16_t x) { (void)x; return 0; }
     147static inline int16_t fract(int16_t x) { (void)x; return 0; }
     148static inline uint32_t fract(uint32_t x) { (void)x; return 0; }
     149static inline int32_t fract(int32_t x) { (void)x; return 0; }
     150static inline uint64_t fract(uint64_t x) { (void)x; return 0; }
     151static inline int64_t fract(int64_t x) { (void)x; return 0; }
    152152static inline float fract(float x) { return x - std::floor(x); }
    153153static inline double fract(double x) { return x - std::floor(x); }
Note: See TracChangeset for help on using the changeset viewer.