Skip to content

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

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++, как решить эту проблему?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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