]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
build: Fix another GCC discarded-qualifiers const error.
authorNaveen Albert <asterisk@phreaknet.org>
Wed, 18 Feb 2026 15:04:13 +0000 (10:04 -0500)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 18 Feb 2026 19:30:18 +0000 (19:30 +0000)
Follow on commit to 27a39cba7e6832cb30cb64edaf879f447b669628
to fix compilation with BETTER_BACKTRACES with gcc 15.2.1.

Resolves: #1781

main/backtrace.c

index e78a50696da24acbd33690f4067c7fe7a38f714c..0d722f02803ba3a4644ffe9fc1810616d40fe2ed 100644 (file)
@@ -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);