diff options
author | cjihrig <cjihrig@gmail.com> | 2018-10-29 08:47:25 -0400 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2018-10-30 15:18:35 +0800 |
commit | 93335cb772f439e475ea9ea3bd7391f216e75c84 (patch) | |
tree | 5a6566a35cf1651d7084ba55f9e2f21f9fd65d57 /src/aliased_buffer.h | |
parent | 010a3f8c23cdab04f32d2d4218361af9c7821ee5 (diff) | |
download | node-new-93335cb772f439e475ea9ea3bd7391f216e75c84.tar.gz |
src: fix compiler warning
The warning is:
../src/util.h:65:11: warning: inline function
'node::Calloc<unsigned char>' is not defined [-Wundefined-inline]
inline T* Calloc(size_t n);
^
../src/aliased_buffer.h:41:15: note: used here
buffer_ = Calloc<NativeT>(count);
PR-URL: https://github.com/nodejs/node/pull/23954
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Diffstat (limited to 'src/aliased_buffer.h')
-rw-r--r-- | src/aliased_buffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aliased_buffer.h b/src/aliased_buffer.h index cdfd90765f..fa610a9774 100644 --- a/src/aliased_buffer.h +++ b/src/aliased_buffer.h @@ -4,7 +4,7 @@ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #include "v8.h" -#include "util.h" +#include "util-inl.h" namespace node { |