On Thu, 26 Feb 2026 04:26:43 GMT, Jasmine Karthikeyan <[email protected]> wrote:
> Hi all, this is a quick patch to fix a build issue I encountered when > updating my Linux system. [Glibc > 2.43](https://lists.gnu.org/archive/html/info-gnu/2026-01/msg00005.html) > changes the definition of some string related functions to return `const > char*` when provided a `const char*` parameter, rather than the previous > behavior of returning `char*`. I've fixed this by applying the `const` > modifier, and casting to `char*` when needed. This should be > backwards-compatible since assigning a non-const pointer to const is an > implicit conversion. Thoughts and comments would be appreciated on whether > this is the best way to fix this issue. Thanks! > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 76a44b3e Author: Jasmine Karthikeyan <[email protected]> URL: https://git.openjdk.org/jdk/commit/76a44b3e0341a9c59eaff0bfe8884ad104bda8d5 Stats: 20 lines in 9 files changed: 0 ins; 0 del; 20 mod 8378180: Compiling OpenJDK with C23 C-Compiler gives warning: initialization discards ‘const’ qualifier from pointer target type Reviewed-by: djelinski, alanb ------------- PR: https://git.openjdk.org/jdk/pull/29929
