diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-01-17 21:47:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-02-05 21:53:55 +0100 |
commit | 6da6e942409d8a9bd4d9a95c43f489443e88346f (patch) | |
tree | 7bd8c18d6b0d972ea8daa032e30e44b1918b3966 /svtools | |
parent | 1c949e29e8a589bb8430e6fb2e5855dbb722b82a (diff) |
Avoid -Werror=dangling-pointer=
> vcl/source/bitmap/Octree.cxx: In constructor ‘Octree::Octree(const BitmapReadAccess&, sal_uLong)’:
> vcl/source/bitmap/Octree.cxx:69:17: error: storing the address of local variable ‘aColor’ in ‘*this.Octree::mpColor’ [-Werror=dangling-pointer=]
> 69 | mpColor = &aColor;
> | ~~~~~~~~^~~~~~~~~
> vcl/source/bitmap/Octree.cxx:67:21: note: ‘aColor’ declared here
> 67 | BitmapColor aColor;
> | ^~~~~~
> vcl/source/bitmap/Octree.cxx:67:21: note: ‘<unknown>’ declared here
(new with GCC 12)
Change-Id: I5b1ffa15b92f2c41dbe51dfa843eb6bab3a4b449
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128517
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
(cherry picked from commit 5db574727f4564238a54159a1a0673eaa2884b69)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129444
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
0 files changed, 0 insertions, 0 deletions