mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix GCC warnings
Mostly unused and uninitialized warnings here and there
This commit is contained in:
parent
9911f486a7
commit
d03b7f77d4
5 changed files with 13 additions and 8 deletions
|
@ -175,7 +175,7 @@ void cb_align_pos(codeblock_t* cb, uint32_t multiple)
|
|||
{
|
||||
// Compute the pointer modulo the given alignment boundary
|
||||
uint8_t* ptr = &cb->mem_block[cb->write_pos];
|
||||
uint32_t rem = ((uint32_t)ptr) % multiple;
|
||||
uint32_t rem = ((uint32_t)(uintptr_t)ptr) % multiple;
|
||||
|
||||
// If the pointer is already aligned, stop
|
||||
if (rem == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue