Fix value stored to 'num_channels' is never read
This commit is contained in:
parent
8cb324b2da
commit
e659336c11
1 changed files with 2 additions and 16 deletions
14
src/external/jar_xm.h
vendored
14
src/external/jar_xm.h
vendored
|
@ -855,8 +855,6 @@ size_t jar_xm_get_memory_needed_for_context(const char* moddata, size_t moddata_
|
||||||
uint16_t num_instruments;
|
uint16_t num_instruments;
|
||||||
|
|
||||||
/* Read the module header */
|
/* Read the module header */
|
||||||
|
|
||||||
num_channels = READ_U16(offset + 8);
|
|
||||||
num_channels = READ_U16(offset + 8);
|
num_channels = READ_U16(offset + 8);
|
||||||
|
|
||||||
num_patterns = READ_U16(offset + 10);
|
num_patterns = READ_U16(offset + 10);
|
||||||
|
@ -2573,16 +2571,10 @@ uint64_t jar_xm_get_remaining_samples(jar_xm_context_t* ctx)
|
||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//--------------------------------------------
|
//--------------------------------------------
|
||||||
//FILE LOADER - TODO - NEEDS TO BE CLEANED UP
|
//FILE LOADER - TODO - NEEDS TO BE CLEANED UP
|
||||||
//--------------------------------------------
|
//--------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#undef DEBUG
|
#undef DEBUG
|
||||||
#define DEBUG(...) do { \
|
#define DEBUG(...) do { \
|
||||||
fprintf(stderr, __VA_ARGS__); \
|
fprintf(stderr, __VA_ARGS__); \
|
||||||
|
@ -2668,13 +2660,7 @@ int jar_xm_create_context_from_file(jar_xm_context_t** ctx, uint32_t rate, const
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif//end of JAR_XM_IMPLEMENTATION
|
#endif//end of JAR_XM_IMPLEMENTATION
|
||||||
//-------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif//end of INCLUDE_JAR_XM_H
|
#endif//end of INCLUDE_JAR_XM_H
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue