Skip to content

3.12.0: "makedev" fails to build (FTBFS) #655

Description

@onlyjob
/build/lizardfs-3.12.0+dfsg/src/chunkserver/iostat.h:112:13: warning: In the GNU C Library, "makedev" is defined 
 by <sys/sysmacros.h>. For historical compatibility, it is 
 currently defined by <sys/types.h> as well, but we plan to 
 remove this soon. To use "makedev", include <sys/sysmacros.h> 
 directly. If you did not intend to use a system-defined macro 
 "makedev", you should undefine it after including <sys/types.h>. 
    auto it = stats_.find(makedev(major, minor)); 
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                          ~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions