Add compiler flags '-Wall -Wextra -Wpedantic'

Fix warnings as a result.

Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
This commit is contained in:
Jacob Perron 2019-08-30 00:53:13 -07:00 committed by Jacob Perron
parent c1c0ce6ea9
commit dce7336bbe
7 changed files with 25 additions and 30 deletions

View file

@ -181,7 +181,7 @@ namespace create {
OC_SENSORS= 142,
OC_QUERY_LIST=149,
OC_STREAM = 148,
OC_TOGGLE_STREAM = 150,
OC_TOGGLE_STREAM = 150
};
enum BAUDCODE {

View file

@ -55,13 +55,13 @@ namespace create {
while (a < -PI) a += TWO_PI;
while (a > PI) a -= TWO_PI;
return a;
};
}
typedef unsigned long long timestamp_t;
/** Get a timestamp for the current time in micro-seconds.
*/
static timestamp_t getTimestamp() {
inline timestamp_t getTimestamp() {
struct timeval now;
gettimeofday(&now, NULL);
return now.tv_usec + (timestamp_t) now.tv_sec * 1000000;