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

Cleanup VVL build warnings #323

Merged
merged 1 commit into from
Sep 11, 2018
Merged

Cleanup VVL build warnings #323

merged 1 commit into from
Sep 11, 2018

Conversation

shannon-lunarg
Copy link
Contributor

@shannon-lunarg shannon-lunarg commented Sep 11, 2018

The IsSpecial function was throwing build warnings, informing us that type qualifiers were being ignored.
This change removes the offending qualifier.

Copy link
Contributor

@jzulauf-lunarg jzulauf-lunarg left a comment

Choose a reason for hiding this comment

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

I'm happy when CI is.

@@ -92,7 +92,7 @@ static bool IsAcquireOp(const COMMAND_POOL_NODE *pool, const Barrier *barrier) {
return (assume_transfer || IsTransferOp(barrier)) && (pool->queueFamilyIndex == barrier->dstQueueFamilyIndex);
}

inline const bool IsSpecial(const uint32_t queue_family_index) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure what I was thinking when I typed that. This is a correct fix

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed! I just verified the same fix. Also: https://stackoverflow.com/questions/8716330/purpose-of-returning-by-const-value 👍 👍 👍 Please merge soon.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jzulauf-lunarg This is mostly my doing. I moved the const around which changed what was being specified as constant--this action is more than likely the result of needing to const functions every which way in my university C++ course.

@shannon-lunarg shannon-lunarg merged commit 9ffeb38 into master Sep 11, 2018
@shannon-lunarg
Copy link
Contributor Author

Changes are now on master.

@shannon-lunarg shannon-lunarg deleted the shannon-is-special branch October 18, 2018 17:19
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.

3 participants