diff options
author | David Robillard <d@drobilla.net> | 2020-06-21 17:38:07 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:06:21 +0200 |
commit | 16573e710c9481ede8b12f5c00127f8e8a975d02 (patch) | |
tree | 64c4b79c5cadec1ca54104de6e36e5aed77cb582 | |
parent | 4111b5359143d301aebd0fde3ac0cc8e3a70bf4d (diff) | |
download | serd-16573e710c9481ede8b12f5c00127f8e8a975d02.tar.gz serd-16573e710c9481ede8b12f5c00127f8e8a975d02.tar.bz2 serd-16573e710c9481ede8b12f5c00127f8e8a975d02.zip |
Strengthen function checks to check for type
This makes the checks work with strict warnings and Werror.
-rw-r--r-- | NEWS | 6 | ||||
-rw-r--r-- | wscript | 12 |
2 files changed, 14 insertions, 4 deletions
@@ -1,3 +1,9 @@ +serd (0.30.5) unstable; + + * Fix various minor warnings and other code quality issues + + -- David Robillard <d@drobilla.net> Sun, 21 Jun 2020 18:05:27 +0200 + serd (0.30.4) stable; * Fix EOF handling while reading in bulk or from strings @@ -11,7 +11,7 @@ from waflib.extras import autowaf # major increment <=> incompatible changes # minor increment <=> compatible changes (additions) # micro increment <=> no interface changes -SERD_VERSION = '0.30.4' +SERD_VERSION = '0.30.5' SERD_MAJOR_VERSION = '0' # Mandatory waf variables @@ -61,11 +61,15 @@ def configure(conf): conf.env.append_unique('DEFINES', ['_FILE_OFFSET_BITS=64']) if not Options.options.no_posix: - for name, header in {'posix_memalign': 'stdlib.h', - 'posix_fadvise': 'fcntl.h', - 'fileno': 'stdio.h'}.items(): + funcs = {'posix_memalign': ('stdlib.h', 'int', 'void**,size_t,size_t'), + 'posix_fadvise': ('fcntl.h', 'int', 'int,off_t,off_t,int'), + 'fileno': ('stdio.h', 'int', 'FILE*')} + + for name, (header, ret, args) in funcs.items(): conf.check_function('c', name, header_name = header, + return_type = ret, + arg_types = args, define_name = 'HAVE_' + name.upper(), defines = ['_POSIX_C_SOURCE=200809L'], mandatory = False) |