summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qarraydata.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-08-06 13:03:29 -0700
committerLars Knoll <lars.knoll@qt.io>2019-12-07 14:17:31 +0100
commit329ec3a268d636cc2cd4e403b5323c4d65723d33 (patch)
tree73f5bdc78f08f67c7aac400336cad9a2772a2e06 /src/corelib/tools/qarraydata.cpp
parentd7e7befe500931afce6dee00bea81ac85b32a69f (diff)
Tell the compiler that QArrayData::allocate allocates memory
ICC, GCC and Clang support __attribute__((malloc)) that tells them that the function returns newly allocated memory which doesn't alias anything else. Though technically we may return memory that has already been used (the shared null or such), that should not be a problem. Change-Id: Id3d5c7bf4d4c45069621ffff13f7f81f8b08ea3d Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/corelib/tools/qarraydata.cpp')
0 files changed, 0 insertions, 0 deletions