mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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>
This commit is contained in:
1 parent
c2fde2124f
commit
53fac5c0d3
1 file changed
+1
-1
@@ -4,7 +4,7 @@
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "v8.h"
|
||||
#include "util.h"
|
||||
#include "util-inl.h"
|
||||
|
||||
namespace node {
|
||||
|
||||
|
||||
Reference in new issue
Block a user