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 Warnings, raise meson warning level #2

Merged
merged 7 commits into from
Jul 31, 2024
Merged

Conversation

Emantor
Copy link
Member

@Emantor Emantor commented Jul 19, 2024

Fix various warnings and raise the meson warning level to two.

@Emantor Emantor requested a review from jluebbe July 19, 2024 13:47
platsch.c Show resolved Hide resolved
@bith3ad bith3ad force-pushed the topic/fix-warnings branch from 59ba9c4 to c30b0ce Compare July 19, 2024 16:48
@bith3ad bith3ad requested review from pH5 and removed request for jluebbe July 19, 2024 16:49
Emantor added 2 commits July 22, 2024 08:18
The include <stdarg.h> is not used anywhere, remove it.

Signed-off-by: Rouven Czerwinski <[email protected]>
The directory and base name are created with a const qualifier and are
not modified in the draw function, pass them as const.

Signed-off-by: Rouven Czerwinski <[email protected]>
@Emantor Emantor force-pushed the topic/fix-warnings branch from c30b0ce to 59a2e3f Compare July 22, 2024 06:19
@Emantor
Copy link
Member Author

Emantor commented Jul 22, 2024

I rebased to fix my author email & SoB.

Copy link

@pH5 pH5 left a comment

Choose a reason for hiding this comment

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

The add_project_arguments() issue is a nitpick, otherwise lgtm.

meson.build Outdated Show resolved Hide resolved
Marco Felsch and others added 5 commits July 31, 2024 07:23
The sizeof operator will return a long unsigned int which raises a sign
compare issue when compared to int.

By making use of asprintf() we can reduce the length restrictions as
well which is a nice side effect.

Signed-off-by: Marco Felsch <[email protected]>
The crtc_id is used as crtc_id but also as indicator that the crtc_id is
already in use. For this crtc_id was declared as int32. This cause a
sign compare issue when compared to unsigned int.

Introduce a local boolean to check if the crtc_id is already in use and
declare the crtc_id as uint32_t to fix this.

Signed-off-by: Marco Felsch <[email protected]>
In both cases the count of items the for loop is iterating over are
integers, use integers for the iteration to avoid a sign compare
warning.

Signed-off-by: Rouven Czerwinski <[email protected]>
The ARRAY_SIZE macro returns an unsigned integer, use an unsigned int
for the loop to avoid a sign compare warning.

Signed-off-by: Rouven Czerwinski <[email protected]>
Signed-off-by: Rouven Czerwinski <[email protected]>
@bith3ad bith3ad force-pushed the topic/fix-warnings branch from 59a2e3f to 91c4768 Compare July 31, 2024 05:25
@bith3ad bith3ad merged commit a5cc234 into master Jul 31, 2024
2 checks passed
@bith3ad bith3ad deleted the topic/fix-warnings branch July 31, 2024 05:27
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