-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Feature/mcume #38
base: main
Are you sure you want to change the base?
Feature/mcume #38
Conversation
⚡ Static analysis result ⚡ 🔴 cppcheck found 35 issues! Click here to see details.esp-box-emu/components/sms/teensysms/AudioPlaySystem.h Lines 7 to 12 in cd7cdb6
!Line: 7 - error: Code 'classAudioPlaySystem{' is invalid C code. Use --std or --language to configure the language. [syntaxError]
esp-box-emu/components/sms/teensysms/emuapi.cpp Lines 38 to 43 in cd7cdb6
!Line: 38 - warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
esp-box-emu/components/sms/teensysms/emuapi.cpp Lines 41 to 46 in cd7cdb6
!Line: 41 - warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
esp-box-emu/components/sms/teensysms/emuapi.cpp Lines 23 to 28 in cd7cdb6
!Line: 23 - style: Parameter 'text' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/sms/teensysms/AudioPlaySystem.cpp Lines 107 to 112 in cd7cdb6
!Line: 107 - style: The scope of the variable 's' can be reduced. [variableScope]
esp-box-emu/components/sms/teensysms/sms.c Lines 287 to 292 in cd7cdb6
!Line: 287 - portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress]
esp-box-emu/components/sms/teensysms/sms.c Lines 288 to 293 in cd7cdb6
!Line: 288 - portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress]
esp-box-emu/components/sms/teensysms/sms.c Lines 295 to 300 in cd7cdb6
!Line: 295 - portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress]
esp-box-emu/components/sms/teensysms/sms.c Lines 296 to 301 in cd7cdb6
!Line: 296 - portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress]
esp-box-emu/components/sms/teensysms/sms.c Lines 300 to 305 in cd7cdb6
!Line: 300 - portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress]
esp-box-emu/components/sms/teensysms/sms.c Lines 301 to 306 in cd7cdb6
!Line: 301 - portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress]
esp-box-emu/components/sms/teensysms/sms.c Lines 307 to 312 in cd7cdb6
!Line: 307 - portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress]
esp-box-emu/components/sms/teensysms/sms.c Lines 308 to 313 in cd7cdb6
!Line: 308 - portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress]
esp-box-emu/components/sms/teensysms/fmopl.c Lines 696 to 701 in cd7cdb6
!Line: 696 - style: Variable 'slot1->TLL' is reassigned a value before the old one has been used. [redundantAssignment]
!Line: 695 - note: slot1->TLL is assigned
!Line: 696 - note: slot1->TLL is overwritten esp-box-emu/components/sms/teensysms/fmopl.c Lines 587 to 592 in cd7cdb6
!Line: 587 - style: The scope of the variable 'rate' can be reduced. [variableScope]
esp-box-emu/components/sms/teensysms/fmopl.c Lines 588 to 593 in cd7cdb6
!Line: 588 - style: The scope of the variable 'j' can be reduced. [variableScope]
esp-box-emu/components/sms/teensysms/fmopl.c Lines 1016 to 1021 in cd7cdb6
!Line: 1016 - style: The scope of the variable 'data' can be reduced. [variableScope]
esp-box-emu/components/sms/teensysms/fmopl.c Lines 1054 to 1059 in cd7cdb6
!Line: 1054 - portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS]
esp-box-emu/components/sms/teensysms/fmopl.c Lines 340 to 345 in cd7cdb6
!Line: 340 - style: Parameter 'CH' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/sms/teensysms/fmopl.c Lines 1069 to 1074 in cd7cdb6
!Line: 1069 - style: The scope of the variable 'data' can be reduced. [variableScope]
esp-box-emu/components/sms/teensysms/fmopl.c Lines 1114 to 1119 in cd7cdb6
!Line: 1114 - portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS]
esp-box-emu/components/sms/teensysms/render.c Lines 333 to 338 in cd7cdb6
!Line: 333 - warning: The address of local variable 'vram' might be accessed at non-zero index. [objectIndex]
!Line: 320 - note: Address of variable taken here.
!Line: 333 - note: The address of local variable 'vram' might be accessed at non-zero index. esp-box-emu/components/sms/teensysms/render.c Lines 354 to 359 in cd7cdb6
!Line: 354 - warning: The address of local variable 'vram' might be accessed at non-zero index. [objectIndex]
!Line: 320 - note: Address of variable taken here.
!Line: 336 - note: Assuming condition is false
!Line: 354 - note: The address of local variable 'vram' might be accessed at non-zero index. esp-box-emu/components/sms/teensysms/render.c Lines 357 to 362 in cd7cdb6
!Line: 357 - warning: The address of local variable 'vram' might be accessed at non-zero index. [objectIndex]
!Line: 320 - note: Address of variable taken here.
!Line: 336 - note: Assuming condition is false
!Line: 357 - note: The address of local variable 'vram' might be accessed at non-zero index. esp-box-emu/components/sms/teensysms/render.c Lines 463 to 468 in cd7cdb6
!Line: 463 - style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck]
esp-box-emu/components/sms/teensysms/render.c Lines 477 to 482 in cd7cdb6
!Line: 477 - style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck]
esp-box-emu/components/sms/teensysms/render.c Lines 494 to 499 in cd7cdb6
!Line: 494 - style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck]
esp-box-emu/components/sms/teensysms/render.c Lines 495 to 500 in cd7cdb6
!Line: 495 - style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck]
esp-box-emu/components/sms/teensysms/render.c Lines 277 to 282 in cd7cdb6
!Line: 277 - style: Variable 'nt' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/sms/teensysms/render.c Lines 320 to 325 in cd7cdb6
!Line: 320 - style: Variable 'st' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/sms/teensysms/render.c Lines 393 to 398 in cd7cdb6
!Line: 393 - style: Variable 'cache_ptr' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/sms/teensysms/render.c Lines 418 to 423 in cd7cdb6
!Line: 418 - style: Variable 'cache_ptr' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/sms/teensysms/ym2413.c Lines 312 to 317 in cd7cdb6
!Line: 312 - style: Variable 'opll' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/sms/teensysms/ym2413.c Lines 371 to 376 in cd7cdb6
!Line: 371 - style: Variable 'param' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/sms/teensysms/ym2413.c Lines 374 to 379 in cd7cdb6
!Line: 374 - style: Variable 'ch2op' can be declared as const array [constVariable]
|
Description
Motivation and Context
How has this been tested?
Screenshots (if appropriate, e.g. schematic, board, console logs, lab pictures):
Types of changes
Checklist:
Software
.github/workflows/build.yml
file to add my new test to the automated cloud build github action.Hardware