Add compiler flags '-Wall -Wextra -Wpedantic'
Fix warnings as a result. Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
This commit is contained in:
parent
c1c0ce6ea9
commit
dce7336bbe
7 changed files with 25 additions and 30 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue