fix of build system and some gcc warnings

This commit is contained in:
Hans Dembinski
2018-07-02 21:21:46 +02:00
parent b753b3bdf7
commit 56ffce6223
11 changed files with 26 additions and 25 deletions

View File

@@ -76,7 +76,7 @@ public:
object operator()(const Array& b) const {
return make_tuple(reinterpret_cast<uintptr_t>(b.begin()), true);
}
object operator()(const array<void>& b) const {
object operator()(const array<void>& /* unused */) const {
// cannot pass non-existent memory to numpy; make new
// zero-initialized uint8 array, and pass it
return np::zeros(tuple(shapes), np::dtype::get_builtin<uint8_t>());