|
From: | Tyge Løvset |
Subject: | [Tinycc-devel] Diagnostics issue with Atomics |
Date: | Thu, 17 Oct 2024 21:47:41 +0000 |
Hi, I incorrectly get a warning when calling free() on an _Atomic pointer, and I suspect it will happen elsewhere too. Both Windows and Linux. Does _Atomics have some “special” qualifiers attached which gives this? You normally see it when
violating constness. _Atomic(long)* x = malloc(sizeof *x); … free(x); warning: assignment discards qualifiers from pointer target type Cheers Tyge Løvset |
[Prev in Thread] | Current Thread | [Next in Thread] |