Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
f4grx
NuttX RTOS
Commits
6179cdfb
Commit
6179cdfb
authored
11 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Eliminate a warning when debug is off
parent
47baf7bf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/mtd/ramtron.c
+7
-1
7 additions, 1 deletion
drivers/mtd/ramtron.c
with
7 additions
and
1 deletion
drivers/mtd/ramtron.c
+
7
−
1
View file @
6179cdfb
...
...
@@ -314,7 +314,10 @@ static inline void ramtron_unlock(FAR struct spi_dev_s *dev)
static
inline
int
ramtron_readid
(
struct
ramtron_dev_s
*
priv
)
{
uint16_t
manufacturer
,
memory
,
capacity
,
part
;
uint16_t
manufacturer
;
uint16_t
memory
;
uint16_t
capacity
;
uint16_t
part
;
int
i
;
fvdbg
(
"priv: %p
\n
"
,
priv
);
...
...
@@ -349,6 +352,9 @@ static inline int ramtron_readid(struct ramtron_dev_s *priv)
if
(
priv
->
part
->
name
)
{
(
void
)
manufacturer
;
/* Eliminate warnings when debug is off */
(
void
)
memory
;
/* Eliminate warnings when debug is off */
fvdbg
(
"RAMTRON %s of size %d bytes (mf:%02x mem:%02x cap:%02x part:%02x)
\n
"
,
priv
->
part
->
name
,
priv
->
part
->
size
,
manufacturer
,
memory
,
capacity
,
part
);
...
...
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