about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2025-07-30 11:45:40 +0900
committerNguyễn Gia Phong <cnx@loang.net>2025-07-30 11:46:27 +0900
commit85ea96211914b97c8ef8735a61c68489e0d010ce (patch)
treeb7bd4d3e25d6346e0ee8a31aefde5f246d9c6140
parent101f45140f786289cb461e1afe77d0bfeee4d7bc (diff)
downloadtaosc-main.tar.gz
Fix discarded const qualifier detected by GCC 14 HEAD 0.0.2 main
-rw-r--r--collect.c4
-rw-r--r--patch.c4
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");