Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lufa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Strand
lufa
Commits
0284385b
Commit
0284385b
authored
12 years ago
by
Dean Camera
Browse files
Options
Downloads
Patches
Plain Diff
Update BoardDriverTest to prevent redundant assignment warnings in the static analysis check.
parent
7aa8dc1d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
BuildTests/BoardDriverTest/Test.c
+17
-4
17 additions, 4 deletions
BuildTests/BoardDriverTest/Test.c
with
17 additions
and
4 deletions
BuildTests/BoardDriverTest/Test.c
+
17
−
4
View file @
0284385b
...
...
@@ -38,16 +38,23 @@ int main(void)
{
uint_reg_t
Dummy
;
/* Buttons Compile Check */
/* =============================
* Buttons Compile Check
* ============================= */
Buttons_Init
();
// cppcheck-suppress redundantAssignment
Dummy
=
Buttons_GetStatus
();
Buttons_Disable
();
/* Dataflash Compile Check */
/* =============================
* Dataflash Compile Check
* ============================= */
Dataflash_Init
();
Dataflash_TransferByte
(
0
);
Dataflash_SendByte
(
0
);
// cppcheck-suppress redundantAssignment
Dummy
=
Dataflash_ReceiveByte
();
// cppcheck-suppress redundantAssignment
Dummy
=
Dataflash_GetSelectedChip
();
Dataflash_SelectChip
(
0
);
Dataflash_DeselectChip
();
...
...
@@ -56,18 +63,24 @@ int main(void)
Dataflash_WaitWhileBusy
();
Dataflash_SendAddressBytes
(
0
,
0
);
/* LEDs Compile Check */
/* =============================
* LEDs Compile Check
* ============================= */
LEDs_Init
();
LEDs_TurnOnLEDs
(
LEDS_ALL_LEDS
);
LEDs_TurnOffLEDs
(
LEDS_ALL_LEDS
);
LEDs_SetAllLEDs
(
LEDS_ALL_LEDS
);
LEDs_ChangeLEDs
(
LEDS_ALL_LEDS
,
LEDS_NO_LEDS
);
LEDs_ToggleLEDs
(
LEDS_ALL_LEDS
);
// cppcheck-suppress redundantAssignment
Dummy
=
LEDs_GetLEDs
();
LEDs_Disable
();
/* Joystick Compile Check */
/* =============================
* Joystick Compile Check
* ============================= */
Joystick_Init
();
// cppcheck-suppress redundantAssignment
Dummy
=
Joystick_GetStatus
();
Joystick_Disable
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment