diff options
| author | Nguyễn Gia Phong <cnx@loang.net> | 2025-07-30 11:45:40 +0900 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2025-07-30 11:46:27 +0900 |
| commit | 85ea96211914b97c8ef8735a61c68489e0d010ce (patch) | |
| tree | b7bd4d3e25d6346e0ee8a31aefde5f246d9c6140 | |
| parent | 101f45140f786289cb461e1afe77d0bfeee4d7bc (diff) | |
| download | taosc-85ea96211914b97c8ef8735a61c68489e0d010ce.tar.gz | |
Fix discarded const qualifier detected by GCC 14 0.0.2
| -rw-r--r-- | collect.c | 4 | ||||
| -rw-r--r-- | patch.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/collect.c b/collect.c index 2ae9c2e..b380f71 100644 --- a/collect.c +++ b/collect.c @@ -1,7 +1,7 @@ /* * Live variable collector * Copyright (C) 2021, 2023 Gregory James Duck - * Copyright (C) 2024 Nguyễn Gia Phong + * Copyright (C) 2024-2025 Nguyễn Gia Phong * * This file is part of taosc. * @@ -23,7 +23,7 @@ FILE *fout = NULL; -void init(int argc, const char *const *argv, const char **envp) +void init(int argc, const char *const *argv, char **envp) { environ = envp; const char *const path = getenv("TAOSC_OUTPUT"); diff --git a/patch.c b/patch.c index 2aa697b..eacf2b1 100644 --- a/patch.c +++ b/patch.c @@ -1,6 +1,6 @@ /* * Dynamic patch - * Copyright (C) 2024 Nguyễn Gia Phong + * Copyright (C) 2024-2025 Nguyễn Gia Phong * * This file is part of taosc. * @@ -39,7 +39,7 @@ uint64_t getenvull(const char *name) return u; } -void init(int argc, const char *const *argv, const char **envp) +void init(int argc, const char *const *argv, char **envp) { environ = envp; taosc_predicate = getenv("TAOSC_PREDICATE"); |
