• yonghong-song's avatar
    remove unused extern variables (#2125) · ae839790
    yonghong-song authored
    On fc29, compiling bcc from source, the following
    compiler warnings are seen:
      /home/yhs/work/bcc/src/cc/bcc_elf.c: In function ‘bcc_free_memory_with_file’:
      /home/yhs/work/bcc/src/cc/bcc_elf.c:802:36: warning: unused variable ‘_fini’ [-Wunused-variable]
           extern unsigned long _start, _fini;
                                        ^~~~~
    /home/yhs/work/bcc/src/cc/bcc_elf.c:802:28: warning: unused variable ‘_start’ [-Wunused-variable]
           extern unsigned long _start, _fini;
                                ^~~~~~
    
    These unused externs are accidentally introduced by
    Commit 51480d05 ("implement free_bcc_memory() API").
    This patch removed them.
    Signed-off-by: default avatarYonghong Song <yhs@fb.com>
    ae839790
bcc_elf.c 25.2 KB