[PATCH 1/4] Cygwin: introduce constexpr errmap_size and errmap[] consistency checks
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Feb 26 15:48:16 GMT 2024
On Feb 26 15:21, Christian Franke wrote:
> From 947daa02b0b64131626c2ecedb74ca6893aab6c6 Mon Sep 17 00:00:00 2001
> From: Christian Franke <christian.franke@t-online.de>
> Date: Mon, 26 Feb 2024 13:37:33 +0100
> Subject: [PATCH 1/4] Cygwin: introduce constexpr errmap_size and errmap[]
> consistency checks
>
> Use constexpr instead of const for errmap[] to allow static_assert
> checks on its values.
>
> Signed-off-by: Christian Franke <christian.franke@t-online.de>
> ---
> winsup/cygwin/errno.cc | 2 +-
> winsup/cygwin/local_includes/errmap.h | 11 ++++++++++-
> 2 files changed, 11 insertions(+), 2 deletions(-)
:+1:
Patchset pushed.
Thanks,
Corinna
More information about the Cygwin-patches
mailing list