scmno****@osdn*****
scmno****@osdn*****
Sat Jun 2 05:13:01 JST 2018
changeset 603f39f98a99 in quipu/quipu details: http://hg.osdn.jp/view/quipu/quipu?cmd=changeset;node=603f39f98a99 user: Agustina Arzille <avarz****@riseu*****> date: Fri Jun 01 17:12:52 2018 -0300 description: Supress some warnings diffstat: builtins.cpp | 4 ++-- io.cpp | 2 +- str.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diffs (45 lines): diff -r e5ce23e3e37d -r 603f39f98a99 builtins.cpp --- a/builtins.cpp Fri Jun 01 17:07:58 2018 -0300 +++ b/builtins.cpp Fri Jun 01 17:12:52 2018 -0300 @@ -552,7 +552,7 @@ else if (argc == 1) qp_return (*argv); - object prev, lst = alloc_cons (interp, argc - 1); + object prev = 0, lst = alloc_cons (interp, argc - 1); for (int i = 0; i < argc - 1; ++i) { @@ -810,7 +810,7 @@ if (argc < nr) interp->raise_nargs (name, nr, -1, argc); - stream *out; + stream *out = nullptr; bool allocated = false; if (stream_p (*argv)) diff -r e5ce23e3e37d -r 603f39f98a99 io.cpp --- a/io.cpp Fri Jun 01 17:07:58 2018 -0300 +++ b/io.cpp Fri Jun 01 17:12:52 2018 -0300 @@ -1648,7 +1648,7 @@ nb = sp->nbytes - (int)(p1 - start); - const char *p2; + const char *p2 = nullptr; object arg = read_from_cstr (interp, p1 + 1, nb - 1, &p2); if (p2 == nullptr || *p2 != '}') diff -r e5ce23e3e37d -r 603f39f98a99 str.cpp --- a/str.cpp Fri Jun 01 17:07:58 2018 -0300 +++ b/str.cpp Fri Jun 01 17:12:52 2018 -0300 @@ -149,7 +149,7 @@ object string::make (interpreter *interp, const char *cstr) { - int len, bytes = ustrlen (cstr, &len); + int len = 0, bytes = ustrlen (cstr, &len); string *ret = as_str (alloc_str (interp, bytes)); memcpy (ret->data, cstr, bytes);