Skip to content

Commit

Permalink
Merge pull request #183 from P403n1x87/chore/cherry-pick-177-to-master
Browse files Browse the repository at this point in the history
chore: minor compilation fixes with gcc 11.3 [cherry-pick of #177 to master]
  • Loading branch information
P403n1x87 authored Jun 28, 2023
2 parents b48d980 + 8cbb77e commit b7eb5e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/linux/addr2line.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,14 @@ get_native_frame(const char *file_name, bfd_vma addr, key_dt frame_key)
bfd_map_over_sections(abfd, find_address_in_section, NULL);

const char *name;
char *alloc = NULL;

name = functionname;
if (name == NULL || *name == '\0')
name = "<unnamed>";
#ifdef HAVE_LIBERTY
else
{
alloc = bfd_demangle(abfd, name, DMGL_PARAMS | DMGL_ANSI);
char *alloc = bfd_demangle(abfd, name, DMGL_PARAMS | DMGL_ANSI);
if (alloc != NULL)
name = alloc;
}
Expand Down
2 changes: 1 addition & 1 deletion src/py_proc_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ py_proc_list__update(py_proc_list_t * self) {
for (;;) {
// This code is inspired by the ps util
ent = readdir(proc_dir);
if (!ent || !ent->d_name) break;
if (!ent) break;
if ((*ent->d_name <= '0') || (*ent->d_name > '9')) continue;

unsigned long pid = strtoul(ent->d_name, NULL, 10);
Expand Down

0 comments on commit b7eb5e2

Please sign in to comment.