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

Add static analysis workflow #445

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ardera
Copy link
Owner

@ardera ardera commented Sep 15, 2024

No description provided.

Repository owner deleted a comment from github-advanced-security bot Sep 15, 2024
src/platformchannel.c Fixed Show fixed Hide fixed
src/plugins/gstreamer_video_player/frame.c Fixed Show fixed Hide fixed
PRAGMA_DIAGNOSTIC_PUSH
PRAGMA_DIAGNOSTIC_IGNORED("-Wfloat-equal")
for (int i = 0; i < a->size; i++) {
if (a->float64array[i] != b->float64array[i]) {

Check notice

Code scanning / CodeQL

Equality test on floating-point values

Equality checks on floating point values can yield unexpected results.
PRAGMA_DIAGNOSTIC_PUSH
PRAGMA_DIAGNOSTIC_IGNORED("-Wfloat-equal")
for (int i = 0; i < a->size; i++) {
if (a->float32array[i] != b->float32array[i]) {

Check notice

Code scanning / CodeQL

Equality test on floating-point values

Equality checks on floating point values can yield unexpected results.
case kStdFloat64:
PRAGMA_DIAGNOSTIC_PUSH
PRAGMA_DIAGNOSTIC_IGNORED("-Wfloat-equal")
return raw_std_value_as_float64(a) == raw_std_value_as_float64(b);

Check notice

Code scanning / CodeQL

Equality test on floating-point values

Equality checks on floating point values can yield unexpected results.
@ardera ardera changed the title Add workflow to run scan-build automatically Add static analysis workflow Sep 16, 2024
- add codechecker workflow
- enable `-pedantic`
- fix a lot of warnings
- only report error from `gbm_surface_create_with_modifiers` if `gbm_surface_create` fails too
@ardera ardera force-pushed the feat/static-analysis-workflow branch from e309e22 to 80321d6 Compare September 16, 2024 22:06
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.

1 participant