Skip to content

Fix CI regarding installation of Clang 16 + start covering Clang 17 - #235

Merged
hartwork merged 4 commits into
masterfrom
fix-ci-regarding-clang-16
Feb 2, 2023
Merged

hartwork merged 4 commits into
masterfrom
fix-ci-regarding-clang-16

Conversation

@hartwork

@hartwork hartwork commented Feb 2, 2023

Copy link
Copy Markdown
Member

Port of 0.4.x pull request #231 to master

sdl_gl_attribute_map[vidoptions->gl_attrs[i].attribute];

if (sdl_attribute < 0) {
if (sdl_attribute == SDL_GLattr(-1)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should also use static_cast.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@kaixiong done

SDL_GLattr sdl_attribute = sdl_gl_attribute_map[vidoptions->gl_attrs[i].attribute];

if (sdl_attribute < 0) {
if (sdl_attribute == SDL_GLattr(-1)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should use static_cast instead:

if (sdl_attribute == static_cast<SDL_GLattr> (-1)) {

@hartwork
hartwork force-pushed the fix-ci-regarding-clang-16 branch from ed2dab7 to 4245282 Compare February 2, 2023 18:30
@hartwork
hartwork requested a review from kaixiong February 2, 2023 18:31
@hartwork
hartwork merged commit a05e1e8 into master Feb 2, 2023
@hartwork
hartwork deleted the fix-ci-regarding-clang-16 branch February 2, 2023 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants