On Wed, 28 Sep 2011 19:05:34 +0200, Alexis Menard  
<[email protected]> wrote:

> WebKit uses ASSERT_UNUSED(variable unused, assert check).

That works for checking a variable. It still does not cover the case

     ASSERT(connect(...));

You would have to do
     bool result = connect(...);
     ASSERT_UNUSED(result, result);

I could probably even prefer:
     if (!connect(...))
         Q_ASSERT(false);

On the other hand, I've written plenty of code that goes
     bool result = doSomething();
     (void)result;
     assert(result);

So there it goes. Out the window.

Cheers,
Frans
_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to