Hello community, here is the log from the commit of package mozjs17 for openSUSE:Factory checked in at 2017-05-27 13:05:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mozjs17 (Old) and /work/SRC/openSUSE:Factory/.mozjs17.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "mozjs17" Sat May 27 13:05:37 2017 rev:11 rq:491247 version:17.0 Changes: -------- --- /work/SRC/openSUSE:Factory/mozjs17/mozjs17.changes 2016-07-01 09:51:22.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.mozjs17.new/mozjs17.changes 2017-05-27 13:05:40.235190677 +0200 @@ -1,0 +2,5 @@ +Tue Apr 25 09:53:45 UTC 2017 - mliska@suse.cz + +- Add gcc7-fix-warning.patch: fix warning, adopted from trunk. + +------------------------------------------------------------------- New: ---- gcc7-fix-warning.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mozjs17.spec ++++++ --- /var/tmp/diff_new_pack.d1w9LN/_old 2017-05-27 13:05:41.091069664 +0200 +++ /var/tmp/diff_new_pack.d1w9LN/_new 2017-05-27 13:05:41.091069664 +0200 @@ -1,7 +1,7 @@ # # spec file for package mozjs17 # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # 2013 Wolfgang Rosenauer # # All modifications and additions to the file contributed by third parties @@ -35,6 +35,7 @@ Patch4: no_defined_array.patch Patch5: aarch64-64k-page.patch Patch6: mozjs-support-48bit-va.patch +Patch7: gcc7-fix-warning.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf213 BuildRequires: gcc-c++ @@ -81,6 +82,7 @@ %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 %build # no need to add build time to binaries ++++++ gcc7-fix-warning.patch ++++++ diff --git a/js/src/shell/jsoptparse.cpp b/js/src/shell/jsoptparse.cpp index b49d0a5..1c72fac 100644 --- a/js/src/shell/jsoptparse.cpp +++ b/js/src/shell/jsoptparse.cpp @@ -243,7 +243,7 @@ OptionParser::extractValue(size_t argc, char **argv, size_t *i, char **value) char *eq = strchr(argv[*i], '='); if (eq) { *value = eq + 1; - if (value[0] == '\0') + if (*value[0] == '\0') return error("A value is required for option %.*s", eq - argv[*i], argv[*i]); return Okay; }