mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 09:38:29 -04:00
build: fixed more build warnings
This commit is contained in:
parent
0763bbd1af
commit
f812fc921f
@ -54,6 +54,9 @@ extern "C" {
|
|||||||
#undef PSTR
|
#undef PSTR
|
||||||
#define PSTR(s) (__extension__({static prog_char __c[] PROGMEM = (s); &__c[0];}))
|
#define PSTR(s) (__extension__({static prog_char __c[] PROGMEM = (s); &__c[0];}))
|
||||||
|
|
||||||
|
#ifdef GETBYTE
|
||||||
|
#undef GETBYTE
|
||||||
|
#endif
|
||||||
#define GETBYTE(flag, mask, pnt) ({ \
|
#define GETBYTE(flag, mask, pnt) ({ \
|
||||||
unsigned char __c; \
|
unsigned char __c; \
|
||||||
asm ( \
|
asm ( \
|
||||||
|
@ -29,7 +29,7 @@ static __attribute__((noinline)) const uint32_t *current_stackptr(void)
|
|||||||
void memcheck_update_stackptr(void)
|
void memcheck_update_stackptr(void)
|
||||||
{
|
{
|
||||||
if (current_stackptr() < stack_low) {
|
if (current_stackptr() < stack_low) {
|
||||||
unsigned s = (uintptr_t)(current_stackptr() - STACK_OFFSET);
|
uintptr_t s = (uintptr_t)(current_stackptr() - STACK_OFFSET);
|
||||||
stack_low = (uint32_t *)(s & ~3);
|
stack_low = (uint32_t *)(s & ~3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user