diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2023-02-13 14:42:50 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2023-04-16 22:17:51 +0200 |
commit | 044a29bc66fbc8621f6cbe1bc2f8bd36dcd23d74 (patch) | |
tree | 521f20cf65f92cdf067f40b2ecdb523160defa3a /src/xml/doc/snippets/code | |
parent | 3b81d04bc6073d66ef3ac4a00e3c18e84057e106 (diff) | |
download | qtbase-044a29bc66fbc8621f6cbe1bc2f8bd36dcd23d74.tar.gz |
corelib/global/*.h: use static_assert instead of Q_STATIC_ASSERT_X
qtconfigmacros:
Otherwise we'd need to include <QtCore/qassert.h> before using
QT_REQUIRE_CONFIG. It cannot be added here as qassert.h itself uses
QT_CONFIG, i.e. qassert.h needs to include this header. And
Q_STATIC_ASSERT_X is only kept around to keep old code working.
_Static_assert is deprecated in C23:
https://en.cppreference.com/w/c/language/_Static_assert
Change-Id: Ie60a02274cc5be8bd1c6dc3819ccfbc2e7864a21
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/xml/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions