Commit 7c52e14042 for asterisk.org
commit 7c52e1404223ecdf7a5863a1d8511def1a9f4bc6
Author: Naveen Albert <asterisk@phreaknet.org>
Date: Wed Feb 18 10:04:13 2026 -0500
build: Fix another GCC discarded-qualifiers const error.
Follow on commit to 27a39cba7e6832cb30cb64edaf879f447b669628
to fix compilation with BETTER_BACKTRACES with gcc 15.2.1.
Resolves: #1781
diff --git a/main/backtrace.c b/main/backtrace.c
index e78a50696d..0d722f0280 100644
--- a/main/backtrace.c
+++ b/main/backtrace.c
@@ -128,7 +128,7 @@ static void process_section(bfd *bfdobj, asection *section, void *obj)
bfd_vma vma;
bfd_size_type size;
bfd_boolean line_found = 0;
- char *fn;
+ const char *fn;
int inlined = 0;
offset = data->pc - (data->dynamic ? (bfd_vma)(uintptr_t) data->dli.dli_fbase : 0);