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

Fix crashing of tests when '-Wp,-D_GLIBCXX_ASSERTIONS' is given #273

Merged
merged 1 commit into from
Feb 18, 2020

Conversation

cheese
Copy link

@cheese cheese commented Feb 15, 2020

If 'vec' is a vector, calling 'vec[0]' will crash the program if
'vec' is empty and '-Wp,-D_GLIBCXX_ASSERTIONS' given in CXXFLAGS.

Fixes #272

If 'vec' is a vector, calling 'vec[0]' will crash the program if
'vec' is empty and '-Wp,-D_GLIBCXX_ASSERTIONS' given in CXXFLAGS.

Fixes gearman#272
@esabol
Copy link
Member

esabol commented Feb 16, 2020

LGTM.

@SpamapS
Copy link
Member

SpamapS commented Feb 18, 2020

This is fine, but at some point soon I think I'd like to say gearmand uses C++11 and drop support for gcc < 4.8.1 .

@SpamapS SpamapS merged commit a6bd168 into gearman:master Feb 18, 2020
@SpamapS
Copy link
Member

SpamapS commented Feb 18, 2020

Oh also, THANKS!

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.

FAIL t/hostile_gearmand (exit status: 134) if CXXFLAGS contains '-Wp,-D_GLIBCXX_ASSERTIONS'
4 participants