summaryrefslogtreecommitdiff
path: root/benchmark/v8
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2019-01-23 13:04:02 +0100
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-02-07 05:33:11 +0100
commitd310d8df62f9c05d07e68c4177f225e9dda72271 (patch)
treeca0ab5dfbb1ec53fb98c4286597905469e3dd7db /benchmark/v8
parent93a57c3f1fe229f3d70357f5146293dc6b5dc3a1 (diff)
downloadandroid-node-v8-d310d8df62f9c05d07e68c4177f225e9dda72271.tar.gz
android-node-v8-d310d8df62f9c05d07e68c4177f225e9dda72271.tar.bz2
android-node-v8-d310d8df62f9c05d07e68c4177f225e9dda72271.zip
src: fix compiler warnings in node_buffer.cc
Currently the following compiler warnings are generated on Linux: ../src/node_buffer.cc: In function 'void node::Buffer::{anonymous}::StringSlice( const v8::FunctionCallbackInfo<v8::Value>&) [with node::encoding encoding = (node::encoding)1]': ../src/node_buffer.cc:54:20: warning: 'start' may be used uninitialized in this function [-Wmaybe-uninitialized] if (end < start) end = start; ^~~ ../src/node_buffer.cc:50:10: note: 'start' was declared here size_t start; ^~~~~ This commit initializes start and end to zero to avoid these warnings. PR-URL: https://github.com/nodejs/node/pull/25665 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark/v8')
0 files changed, 0 insertions, 0 deletions