These bogus -Wdangling-reference still hit with current GCC 16 trunk
Change-Id: I228e0b148d77b973afb4e35b8976438ba5a95967 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184517 Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de> Tested-by: Jenkins
This commit is contained in:
@@ -565,12 +565,12 @@ Reference< XDriver > OSDBCDriverManager::implGetDriverForURL(const OUString& _rU
|
||||
m_aDriversBS.end(), // end of search range
|
||||
[&_rURL, this] (const DriverAccessArray::value_type& driverAccess) {
|
||||
// extract the driver from the access, then ask the resulting driver for acceptance
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 15
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 16
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdangling-reference"
|
||||
#endif
|
||||
const DriverAccess& ensuredAccess = EnsureDriver(m_xContext)(driverAccess);
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 15
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 16
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
const Reference<XDriver> driver = ExtractDriverFromAccess()(ensuredAccess);
|
||||
|
||||
@@ -966,12 +966,12 @@ static array_type assembleGrid(const VclGrid &rGrid)
|
||||
{
|
||||
for (sal_Int32 y = 0; y < nMaxY; ++y)
|
||||
{
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 15
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 16
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdangling-reference"
|
||||
#endif
|
||||
const GridEntry &rEntry = A[x][y];
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 15
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 16
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
const vcl::Window *pChild = rEntry.pChild;
|
||||
@@ -1104,7 +1104,7 @@ static void calcMaxs(const array_type &A, std::vector<VclGrid::Value> &rWidths,
|
||||
{
|
||||
for (sal_Int32 y = 0; y < nMaxY; ++y)
|
||||
{
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 15
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 16
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdangling-reference"
|
||||
#elif defined _MSC_VER
|
||||
@@ -1113,7 +1113,7 @@ static void calcMaxs(const array_type &A, std::vector<VclGrid::Value> &rWidths,
|
||||
#pragma warning(disable : 4996)
|
||||
#endif
|
||||
const GridEntry &rEntry = A[x][y];
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 15
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 16
|
||||
#pragma GCC diagnostic pop
|
||||
#elif defined _MSC_VER
|
||||
#pragma warning(pop)
|
||||
@@ -1148,12 +1148,12 @@ static void calcMaxs(const array_type &A, std::vector<VclGrid::Value> &rWidths,
|
||||
{
|
||||
for (sal_Int32 y = 0; y < nMaxY; ++y)
|
||||
{
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 15
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 16
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdangling-reference"
|
||||
#endif
|
||||
const GridEntry &rEntry = A[x][y];
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 15
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 13 && __GNUC__ <= 16
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
const vcl::Window *pChild = rEntry.pChild;
|
||||
|
||||
Reference in New Issue
Block a user