Skip to content

Create MSYS2.yaml and fix some issues on MSYS2. - #905

Open
minminlittleshrimp wants to merge 2 commits into
masterfrom
pffang/master
Open

Create MSYS2.yaml and fix some issues on MSYS2.#905
minminlittleshrimp wants to merge 2 commits into
masterfrom
pffang/master

Conversation

@minminlittleshrimp

Copy link
Copy Markdown
Collaborator

Add MSYS2 building action to check building issues on MSYS2.

Fix some "error=char-subscripts" for isdigit and isspace functions by adding explicit cast to int,
which is required by C99 standard and later.

Add MSYS2 building action to check building issues on MSYS2.

Fix some "error=char-subscripts" for isdigit and isspace functions
by adding explicit cast to int,
which is required by C99 standard and later.
@minminlittleshrimp

Copy link
Copy Markdown
Collaborator Author

Hello @pffang please answer why we set baudrate to unused? I believe it use in switch case block?

@pffang

pffang commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Hello @pffang please answer why we set baudrate to unused? I believe it use in switch case block?

You can check the macro detection inside the speed_t dlt_convert_serial_speed(int baudrate) function. MSYS will define the _CYGWIN macro, so it will go to the #else branch, and this branch doesn't use the baudrate parameter.

@minminlittleshrimp

Copy link
Copy Markdown
Collaborator Author

@pffang This PR somehow block gtest dlt user from finishing, please check the touching in dlt common to see if the root cause from there

@pffang

pffang commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

@pffang This PR somehow block gtest dlt user from finishing, please check the touching in dlt common to see if the root cause from there

That's strange. My changes only adapt to the strict grammar checking in the newer compiler, don't include any logic modification.

@minminlittleshrimp minminlittleshrimp left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Look good to me

@minminlittleshrimp

Copy link
Copy Markdown
Collaborator Author

Hi @santhoshsivanhere
Kindly review and approve -> squash and merge
Thanks

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