Prevent compiler warnings

This commit is contained in:
Christian Helmuth 2016-04-21 09:10:44 +02:00
parent dd90cb3bfe
commit 9cd26c4d61
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ namespace Abi {
* On RISC-V we align the stack top to 16-byte. As a call (or branch) will * On RISC-V we align the stack top to 16-byte. As a call (or branch) will
* not change the stack pointer, we need no further stack adjustment. * not change the stack pointer, we need no further stack adjustment.
*/ */
static Genode::addr_t stack_align(Genode::addr_t addr) { inline Genode::addr_t stack_align(Genode::addr_t addr) {
return (addr & ~0xf); } return (addr & ~0xf); }
/** /**

View File

@ -35,7 +35,7 @@ class Genode::Pic
}; };
Pic() { } Pic() { }
bool take_request(unsigned & i) { return true; } bool take_request(unsigned & i) { i = 0; return true; }
void unmask(unsigned const i, unsigned) { } void unmask(unsigned const i, unsigned) { }
void mask(unsigned const i) { } void mask(unsigned const i) { }
void finish_request() { } void finish_request() { }

View File

@ -22,7 +22,7 @@ namespace Abi {
* On ARM we align the stack top to 16-byte. As a call (or branch) will not * On ARM we align the stack top to 16-byte. As a call (or branch) will not
* change the stack pointer, we need no further stack adjustment. * change the stack pointer, we need no further stack adjustment.
*/ */
static inline Genode::addr_t stack_align(Genode::addr_t addr) { inline Genode::addr_t stack_align(Genode::addr_t addr) {
return (addr & ~0xf); } return (addr & ~0xf); }
/** /**