mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 15:32:25 +00:00
Prevent compiler warnings
This commit is contained in:
parent
dd90cb3bfe
commit
9cd26c4d61
@ -23,7 +23,7 @@ namespace Abi {
|
||||
* 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.
|
||||
*/
|
||||
static Genode::addr_t stack_align(Genode::addr_t addr) {
|
||||
inline Genode::addr_t stack_align(Genode::addr_t addr) {
|
||||
return (addr & ~0xf); }
|
||||
|
||||
/**
|
||||
|
@ -35,7 +35,7 @@ class Genode::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 mask(unsigned const i) { }
|
||||
void finish_request() { }
|
||||
|
@ -22,7 +22,7 @@ namespace Abi {
|
||||
* 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.
|
||||
*/
|
||||
static inline Genode::addr_t stack_align(Genode::addr_t addr) {
|
||||
inline Genode::addr_t stack_align(Genode::addr_t addr) {
|
||||
return (addr & ~0xf); }
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user