mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
fix for a couple of warnings that are generated when GNU lightning is used
This commit is contained in:
@@ -30,7 +30,8 @@ AM_PROG_CC_C_O
|
|||||||
-Wall\
|
-Wall\
|
||||||
-Wextra\
|
-Wextra\
|
||||||
-Wno-missing-field-initializers\
|
-Wno-missing-field-initializers\
|
||||||
-Wno-unused-parameter"
|
-Wno-unused-parameter\
|
||||||
|
-Wno-unused-value"
|
||||||
fi]
|
fi]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ jit_flush_code(void *dest, void *end)
|
|||||||
jit_flush_code as an mprotect. */
|
jit_flush_code as an mprotect. */
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
static unsigned long prev_page = 0, prev_length = 0;
|
static unsigned long prev_page = 0, prev_length = 0;
|
||||||
int page, length;
|
unsigned long page, length;
|
||||||
#ifdef PAGESIZE
|
#ifdef PAGESIZE
|
||||||
const int page_size = PAGESIZE;
|
const int page_size = PAGESIZE;
|
||||||
#else
|
#else
|
||||||
@@ -62,7 +62,7 @@ jit_flush_code(void *dest, void *end)
|
|||||||
page_size = sysconf (_SC_PAGESIZE);
|
page_size = sysconf (_SC_PAGESIZE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
page = (long) dest & ~(page_size - 1);
|
page = (unsigned long) dest & ~(page_size - 1);
|
||||||
length = ((char *) end - (char *) page + page_size - 1) & ~(page_size - 1);
|
length = ((char *) end - (char *) page + page_size - 1) & ~(page_size - 1);
|
||||||
|
|
||||||
/* Simple-minded attempt at optimizing the common case where a single
|
/* Simple-minded attempt at optimizing the common case where a single
|
||||||
|
|||||||
Reference in New Issue
Block a user