Hello Thiago. > Am 22.07.2015 um 22:45 schrieb Thiago Macieira <thiago.macie...@intel.com>: > > On Wednesday 22 July 2015 20:51:21 Gunnar Roth wrote: >> You are completely right, albeit there is a macro you can define so qt does >> not switch of the warnings, but then you get warnings, bad if you compile >> with warnings as errors. Our solution ist to have a Qt_prolog.h and >> Qt_epilog.h which we use before and after every include of a qt header and >> do the push/pop. To be honest we also have that for windows header as these >> are also rising warnings at W$ level. Qt 5.5 even introduced a new warning >> in W4 Level of MSVC by the way Q_ASSERT is defined now, which you can’t >> avoid with the epilog/prolog warning push/pop . There is a >> https://codereview.qt-project.org/#/c/109099/ >> <https://codereview.qt-project.org/#/c/109099/> change but that got not >> much attention so the qt5.5 release caters the new warning. We avoid it be >> redefining Q_ASSERT in a warning free way in our Qt_epilog.h. > > This is evil! > Pardon me?
> # define QT_TRY if (1,1) > # define Q_ASSERT(cond) do { } while ((0,0) && (cond)) > > Approved. Nice. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest