From 9bf4ff12e6d96870fa48785846de5c96411ec5ea Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 3 Aug 2015 11:40:22 +0200 Subject: Make UNUSED macro work for xlC --- odb/details/unused.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/odb/details/unused.hxx b/odb/details/unused.hxx index 8d3af30..56d7244 100644 --- a/odb/details/unused.hxx +++ b/odb/details/unused.hxx @@ -7,11 +7,11 @@ #include -// VC++ doesn't like the (void)x expression if x is a reference to -// an incomplete type. On the other hand, GCC warns that (void*)&x +// VC++ and xlC don't like the (void)x expression if x is a reference +// to an incomplete type. On the other hand, GCC warns that (void*)&x // doesn't have any effect. // -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__xlC__) # define ODB_POTENTIALLY_UNUSED(x) (void*)&x #else # define ODB_POTENTIALLY_UNUSED(x) (void)x -- cgit v1.1