aboutsummaryrefslogtreecommitdiff
path: root/pw_allocator/public
diff options
context:
space:
mode:
authorEwout van Bekkum <ewout@google.com>2020-10-15 13:12:30 -0700
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2020-10-16 23:28:19 +0000
commite4d7b690c861bf71f926aba5aa723e361aa3ede2 (patch)
treea735514cf4c2ec16b3571d9bd1a3f68971bab007 /pw_allocator/public
parent7a436e0697b6a03b47e4b286c047d98d3de6d921 (diff)
downloadpigweed-e4d7b690c861bf71f926aba5aa723e361aa3ede2.tar.gz
pw_build: add "-Wundef" to strict_warnings
Adds "-Wundef" to "strict_warnings" to catch use of accidentally undefined macros which otherwise implicitly default to 0. Updates macros across Pigweed to make it compile. Drops support for PW_TEST_DONT_DEFINE_* in addition to GTEST_DONT_DEFINE_*, instead only GTEST_DONT_DEFINE_* is used. Change-Id: Id89f85f7cb8a52c1619bc0f7262349310203067b Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/21463 Reviewed-by: Alexei Frolov <frolv@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Ewout van Bekkum <ewout@google.com>
Diffstat (limited to 'pw_allocator/public')
-rw-r--r--pw_allocator/public/pw_allocator/block.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw_allocator/public/pw_allocator/block.h b/pw_allocator/public/pw_allocator/block.h
index b0cfae407..b82dee991 100644
--- a/pw_allocator/public/pw_allocator/block.h
+++ b/pw_allocator/public/pw_allocator/block.h
@@ -23,7 +23,7 @@
namespace pw::allocator {
-#if PW_ALLOCATOR_POISON_ENABLE
+#if defined(PW_ALLOCATOR_POISON_ENABLE) && PW_ALLOCATOR_POISON_ENABLE
// Add poison offset of sizeof(void*) bytes before and after usable space in all
// Blocks.
#define PW_ALLOCATOR_POISON_OFFSET sizeof(void*)