ltsmin: workaround spurious gcc-snapshot warning
* spot/ltsmin/ltsmin.cc: Add an assert.
This commit is contained in:
parent
413eab1d32
commit
f0416b3f3c
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue