From 6b1885ee70fd843daeb31f3d826fea2a5b8432a6 Mon Sep 17 00:00:00 2001 From: galaxy001 Date: Tue, 31 Oct 2023 16:26:48 +0800 Subject: [PATCH] Prevent constant strings warning in ketopt.h by g++ fix `-Wwrite-strings` by g++. --- ketopt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ketopt.h b/ketopt.h index 73dd2dc8..cced7a17 100644 --- a/ketopt.h +++ b/ketopt.h @@ -17,7 +17,7 @@ typedef struct { } ketopt_t; typedef struct { - char *name; + char const *name; int has_arg; int val; } ko_longopt_t;