]> git.eshelyaron.com Git - emacs.git/commitdiff
Port --enable-gcc-warnings to Ubuntu 16.10
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Nov 2016 20:15:25 +0000 (12:15 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Nov 2016 20:18:33 +0000 (12:18 -0800)
* src/gmalloc.c: Include <stdlib.h>, so it declares
hybrid_aligned_alloc (the definiens of the aligned_alloc macro),
so that GCC doesn't complain that hybrid_aligned_alloc is
defined without being declared.

src/gmalloc.c

index 6ca35ec5f1513f75f517d469f33351f71f7c3b92..3f7bbda84ab9ef0e3caa6265ddef5b15ed875f17 100644 (file)
@@ -26,6 +26,7 @@ License along with this library.  If not, see <http://www.gnu.org/licenses/>.
 #endif
 
 #include <stddef.h>
+#include <stdlib.h>
 #include <string.h>
 #include <limits.h>
 #include <stdint.h>