mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-30 15:30:30 +00:00
Avoid compilation warnings in Antelope.
This commit is contained in:
parent
ad10f438c0
commit
7738cdd15e
@ -586,7 +586,6 @@ derive_relation(lvm_instance_t *p, derivation_t *local_derivations)
|
||||
node_type_t type;
|
||||
operand_t operand[2];
|
||||
int i;
|
||||
int var;
|
||||
int variable_id;
|
||||
operand_value_t *value;
|
||||
derivation_t *derivation;
|
||||
@ -640,11 +639,9 @@ derive_relation(lvm_instance_t *p, derivation_t *local_derivations)
|
||||
if(operand[1].type == LVM_VARIABLE) {
|
||||
return DERIVATION_ERROR;
|
||||
}
|
||||
var = 0;
|
||||
variable_id = operand[0].value.id;
|
||||
value = &operand[1].value;
|
||||
} else {
|
||||
var = 1;
|
||||
variable_id = operand[1].value.id;
|
||||
value = &operand[0].value;
|
||||
}
|
||||
|
@ -36,6 +36,7 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "contiki.h"
|
||||
#include "dev/serial-line.h"
|
||||
@ -110,6 +111,7 @@ buffer_db_data(const char *format, ...)
|
||||
return len;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#if !PREPARE_DB
|
||||
static void
|
||||
take_sample(void)
|
||||
{
|
||||
@ -123,6 +125,7 @@ take_sample(void)
|
||||
printf("DB insertion failed\n");
|
||||
}
|
||||
}
|
||||
#endif /* !PREPARE_DB */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static void
|
||||
stop_handler(void *ptr)
|
||||
|
Loading…
Reference in New Issue
Block a user