ltsmin: workaround spurious gcc-snapshot warning

* spot/ltsmin/ltsmin.cc: Add an assert.
This commit is contained in:
Alexandre Duret-Lutz 2016-12-10 20:21:29 +01:00
parent 413eab1d32
commit f0416b3f3c

View file

@ -1027,6 +1027,8 @@ namespace spot
}
auto d = std::make_shared<spins_interface>();
assert(d); // Superfluous, but Debian's GCC 7 snapshot 20161207-1 warns
// about potential null pointer dereference on the next line.
d->handle = h;