mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move variable into the code block it is used in
Avoids an "unused variable" warning. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a38d440d5e
commit
0e865ef4e7
1 changed files with 1 additions and 3 deletions
|
@ -108,7 +108,6 @@ void fill_computer_list()
|
|||
{
|
||||
dc_iterator_t *iterator = NULL;
|
||||
dc_descriptor_t *descriptor = NULL;
|
||||
struct mydescriptor *mydescriptor;
|
||||
|
||||
fill_supported_mobile_list();
|
||||
|
||||
|
@ -144,8 +143,7 @@ void fill_computer_list()
|
|||
happens to match a data structure that is internal to libdivecomputer;
|
||||
this WILL BREAK if libdivecomputer changes the dc_descriptor struct...
|
||||
eventually the UEMIS code needs to move into libdivecomputer, I guess */
|
||||
|
||||
mydescriptor = (struct mydescriptor *)malloc(sizeof(struct mydescriptor));
|
||||
struct mydescriptor *mydescriptor = (struct mydescriptor *)malloc(sizeof(struct mydescriptor));
|
||||
mydescriptor->vendor = "Uemis";
|
||||
mydescriptor->product = "Zurich";
|
||||
mydescriptor->type = DC_FAMILY_NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue