Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sergeybhub opened this issue Nov 27, 2015 · 1 comment

Comments

@sergeybhub
Copy link

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

@roma2341
Copy link

Компилятор ругается: "compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors". Если перевести, то он
говорит, что при компиляции с параметром -Wfatal-errors все warning-и
считаются ошибками, чтобы решить проблему можно просто убрать -Wfatal-errors
из Make файла.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants