Skip to content

Cannot compile C++ version (ignoring return value of ‘int setegid(__gid_t)’, declared with attribute warn_unused_result) #37

@sergeybhub

Description

@sergeybhub

$ sh Make.sh
dklab_realplexor.cpp: In function ‘void mainloop()’:
dklab_realplexor.cpp:152:21: error: ignoring return value of ‘int setegid(__gid_t)’, declared with attribute warn_unused_result [-Werror=unused-result]
setegid(gid);
^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors

Сорри, я не особо понимаю в c++, как решить эту проблему?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions