py, unix: Allow to compile with -Wunused-parameter.

See issue #699.
This commit is contained in:
Damien George
2015-01-20 12:47:20 +00:00
parent 50912e7f5d
commit ff8dd3f486
51 changed files with 156 additions and 19 deletions

View File

@@ -29,6 +29,7 @@
// find real radix base, and strip preceding '0x', '0o' and '0b'
// puts base in *base, and returns number of bytes to skip the prefix
mp_uint_t mp_parse_num_base(const char *str, mp_uint_t len, mp_uint_t *base) {
(void)len; // TODO use given len?
const byte *p = (const byte*)str;
unichar c = *(p++);
if ((*base == 0 || *base == 16) && c == '0') {