Skip to content
Snippets Groups Projects
Commit 34080b02 authored by Bruce Cowan's avatar Bruce Cowan :airplane:
Browse files

A couple of realloc fixes and add warning options

parent e820f315
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifdef HAVE_REALLOCARRAY
#define _GNU_SOURCE
#endif
#include "config.h" #include "config.h"
#include "mem.h" #include "mem.h"
...@@ -57,5 +61,5 @@ check_reallocarray (void *ptr, ...@@ -57,5 +61,5 @@ check_reallocarray (void *ptr,
if (!new) if (!new)
exit (EXIT_FAILURE); exit (EXIT_FAILURE);
return ptr; return new;
} }
project('stdlib', 'c', project('stdlib', 'c',
default_options: ['c_std=gnu99']) default_options: ['warning_level=3', 'c_std=gnu99'])
cc = meson.get_compiler('c') cc = meson.get_compiler('c')
libm = cc.find_library('m') libm = cc.find_library('m')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment