diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2013-06-17 07:32:41 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2013-06-17 07:32:41 +0000 |
| commit | e65bbb0713afbec4b1870963d8ee6c808a4d4959 (patch) | |
| tree | 9df795f0489328aa5ca4e14e166049ba1daae27a /src/runtime | |
| parent | 407f680bae1834d5fa5bb27605097e436586663c (diff) | |
fix for a couple of warnings that are generated when GNU lightning is used
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/c/configure.ac | 3 | ||||
| -rw-r--r-- | src/runtime/c/pgf/lightning/i386/funcs.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/runtime/c/configure.ac b/src/runtime/c/configure.ac index 2ee8f6774..82f941cb5 100644 --- a/src/runtime/c/configure.ac +++ b/src/runtime/c/configure.ac @@ -30,7 +30,8 @@ AM_PROG_CC_C_O -Wall\ -Wextra\ -Wno-missing-field-initializers\ - -Wno-unused-parameter" + -Wno-unused-parameter\ + -Wno-unused-value" fi] diff --git a/src/runtime/c/pgf/lightning/i386/funcs.h b/src/runtime/c/pgf/lightning/i386/funcs.h index 1e247049f..e90cfa430 100644 --- a/src/runtime/c/pgf/lightning/i386/funcs.h +++ b/src/runtime/c/pgf/lightning/i386/funcs.h @@ -53,7 +53,7 @@ jit_flush_code(void *dest, void *end) jit_flush_code as an mprotect. */ #ifdef __linux__ static unsigned long prev_page = 0, prev_length = 0; - int page, length; + unsigned long page, length; #ifdef PAGESIZE const int page_size = PAGESIZE; #else @@ -62,7 +62,7 @@ jit_flush_code(void *dest, void *end) page_size = sysconf (_SC_PAGESIZE); #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); /* Simple-minded attempt at optimizing the common case where a single |
