mirror of
git://sourceware.org/git/libabigail.git
synced 2025-01-31 05:41:38 +00:00
Fix abipkgdiff compilation issues
The compiler rightfully complains that data members should be initialized in the other in which they are declared. Fixed thus. * tools/abipkgdiff.cc (elf_file::elf_file): Initialize data member in the same order as they were declared. (package::package): Likewise. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
29b3c26a8d
commit
ab548d0086
@ -87,7 +87,10 @@ struct elf_file
|
||||
elf_type type;
|
||||
|
||||
elf_file(string path, string name, elf_type type, string soname)
|
||||
: path(path), name(name), type(type), soname(soname)
|
||||
: name(name),
|
||||
path(path),
|
||||
soname(soname),
|
||||
type(type)
|
||||
{ }
|
||||
|
||||
~elf_file()
|
||||
@ -116,8 +119,8 @@ struct package
|
||||
package(string path, string dir, abigail::tools_utils::file_type file_type,
|
||||
bool is_debuginfo = false )
|
||||
: pkg_path(path),
|
||||
is_debuginfo_pkg(is_debuginfo),
|
||||
pkg_type(file_type)
|
||||
pkg_type(file_type),
|
||||
is_debuginfo_pkg(is_debuginfo)
|
||||
{
|
||||
const char *tmpdir = getenv("TMPDIR");
|
||||
if (tmpdir != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user