build: fixed more build warnings

This commit is contained in:
Andrew Tridgell 2012-08-09 16:19:39 +10:00
parent 0763bbd1af
commit f812fc921f
2 changed files with 4 additions and 1 deletions

View File

@ -54,6 +54,9 @@ extern "C" {
#undef PSTR
#define PSTR(s) (__extension__({static prog_char __c[] PROGMEM = (s); &__c[0];}))
#ifdef GETBYTE
#undef GETBYTE
#endif
#define GETBYTE(flag, mask, pnt) ({ \
unsigned char __c; \
asm ( \

View File

@ -29,7 +29,7 @@ static __attribute__((noinline)) const uint32_t *current_stackptr(void)
void memcheck_update_stackptr(void)
{
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);
}
}