You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should also explicitly use void in 0-parameter functions, looks like Clay__CloneElementsWithExitTransition is the only real function that has this issue. there's also a fully empty Clay__CreateDebugView function which has the issue.
Also, Clay_LayoutElement uses an anonymous union and anonymous struct which is C11. This looks harder to fix though, unfortunately.
Should also explicitly use void in 0-parameter functions, looks like Clay__CloneElementsWithExitTransition is the only real function that has this issue. there's also a fully empty Clay__CreateDebugView function which has the issue.
Also, Clay_LayoutElement uses an anonymous union and anonymous struct which is C11. This looks harder to fix though, unfortunately.
While non-void 0 parameter functions don't give warnings in most compilers, I added void to the parameters of Clay_GetLayoutDimensions() and Clay__CloneElementsWithExitTransition().
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes the following warnings I get when using Clay+Raylib with GCC 15.2.1 and with
-Wall,-Wextra, and-pedanticenabled:Changes done:
{}and{ 0 }withCLAY__DEFAULT_STRUCTinttouint32_tin comparison to fix signedness mismatch/* fall through */comment to suppress the implicit case fallthrough warning(void)