projects
/
seabios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dbc2ad
)
Fix compiler warning in setup_translation().
author
Kevin O'Connor
<kevin@koconnor.net>
Tue, 10 Nov 2009 00:15:50 +0000
(19:15 -0500)
committer
Kevin O'Connor
<kevin@koconnor.net>
Tue, 10 Nov 2009 00:15:50 +0000
(19:15 -0500)
Assign 'desc' just to silence compiler warning.
src/block.c
patch
|
blob
|
history
diff --git
a/src/block.c
b/src/block.c
index 0a65ae698feac8e49285220786f0a1c942020b3a..d36ad3637cf2ccea39eb241b591913470c1cfb1f 100644
(file)
--- a/
src/block.c
+++ b/
src/block.c
@@
-86,7
+86,7
@@
setup_translation(struct drive_s *drive_g)
u16 cylinders = GET_GLOBAL(drive_g->pchs.cylinders);
u16 spt = GET_GLOBAL(drive_g->pchs.spt);
u64 sectors = GET_GLOBAL(drive_g->sectors);
- const char *desc;
+ const char *desc
= NULL
;
switch (translation) {
default: