[CK] More lifetime-warning suppression (#5639)

## Motivation

The staging compiler picked up another change from upstream that leads
to more lifetime-analysis warnings. This breaks the build, given CK is
built with -Werror. As a result, compiler promotion is blocked.

## Technical Details
This patch adds the pragma push diagnostics to ignore the
lifetime-warnings in the modified files to unblock compiler promotion.

## Test Plan

<!-- Explain any relevant testing done to verify this PR. -->

## Test Result

<!-- Briefly summarize test outcomes. -->

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
This commit is contained in:
Jan Patrick Lehr
2026-03-28 12:19:46 +01:00
committed by GitHub
parent e40a675f74
commit d1327bedb7
8 changed files with 42 additions and 0 deletions

View File

@@ -10,6 +10,9 @@
#include "ck/utility/tuple_helper.hpp"
#include "ck/tensor_description/tensor_adaptor.hpp"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
namespace ck {
namespace detail {
@@ -191,3 +194,5 @@ struct SpaceFillingCurve
};
} // namespace ck
#pragma clang diagnostic pop