From: Nadav Har'El <n...@scylladb.com>
Committer: Nadav Har'El <n...@scylladb.com>
Branch: master

gcc 7: remove inappropriate use of "constexpr".

In one test we assigned a constant-expression-but-not-marked-constexpr
pointer into a constexpr variable, which gcc 7 didn't like. There is no
need to bother with constexpr qualifications in tests so let's just
remove it.

Signed-off-by: Nadav Har'El <n...@scylladb.com>
Message-Id: <20170713072336.20818-1-...@scylladb.com>

---
diff --git a/tests/tst-mmap-file.cc b/tests/tst-mmap-file.cc
--- a/tests/tst-mmap-file.cc
+++ b/tests/tst-mmap-file.cc
@@ -107,8 +107,8 @@ int main(int argc, char *argv[])
     report(check_mapping(NULL, 0, MAP_SHARED, fd, 0, EINVAL) == 0,
         "force EINVAL by passing length equals to zero.");

- constexpr void *unaligned_addr = reinterpret_cast<void*>(0xefff1001); // unaligned 4k-sized page. - constexpr void *aligned_addr = reinterpret_cast<void*>(0xefff1000); // aligned 4k-sized page. + void *unaligned_addr = reinterpret_cast<void*>(0xefff1001); // unaligned 4k-sized page. + void *aligned_addr = reinterpret_cast<void*>(0xefff1000); // aligned 4k-sized page. // if MAP_FIXED was specified, then mmap should return EINVAL to unaligned addresses. report(check_mapping(unaligned_addr, size, MAP_SHARED | MAP_FIXED, fd, 0, EINVAL) == 0, "force EINVAL by passing an unaligned addr and the flag MAP_FIXED.");

--
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to