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

Changes to allow compilation with gcc 6 #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yakman2020
Copy link

Need to make changes so we can compile on ubuntu 16.10

#pragma GCC diagnostic push
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
#endif
// readdir_c is deprecated as of POSIX 1.2008 but is still supported and not simple to implement the recommended usage. Make a warning for now
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean readdir_r?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, do we treat warnings as errors in debug mode?

Copy link
Contributor

@jeffaco jeffaco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please research the throw issue.

@@ -94,6 +98,9 @@ namespace SCXCoreLib
{
throw SCXErrnoException(L"pthread_mutex_destroy() function call failed", err, SCXSRCLOCATION);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we do throws all over the place, I'm REALLY curious what makes this throw different than the other throws:

jeffcof:code> grep -R throw | grep -v \\throws | grep -v // | wc -l
685
jeffcof:code> 

So not counting SCX or other providers, JUST the PAL, what makes this throw different from 684 other throws?

Please research this, I'd prefer fixing the code than masking the error if we can. Otherwise looks fine.

Will mark awaiting feedback to see what you determine here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a comment to explain. They are thorwing in a destructor, very poor practice. If the throw ever occurs it will panic the app

@yakman2020
Copy link
Author

yakman2020 commented Dec 21, 2016 via email

@vitlav
Copy link

vitlav commented Jun 9, 2017

Note there are still no changes to fix build with gcc 6 and default -Werror=deprecated-declarations due deprecated readdir_r using.

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

Successfully merging this pull request may close these issues.

4 participants