We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1233

Summary: timidity: make testmidi to actually compile
Product: SDL_sound Reporter: Ozkan Sezer <sezeroz>
Component: everythingAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED ENDOFLIFE QA Contact: Ryan C. Gordon <icculus>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: All   
OS: All   
Attachments: timidity cleanups

Description Ozkan Sezer 2011-06-16 04:53:30 UTC
Attached patch does the following:

- Add missing instrum_dls among the objects,
- Add a simple __Sound_SetError() wrapper to testmidi.c so that linkage succeeds
- Fix -ansi -pedantic warnings (extra semicolons at the end of a function, C++ style comments..)
- Fix two signedness mismatch in comparison (int vs. size_t) warning
- Fix a 'may be used uninitialized' warning in load_instrument_dls()
- Fix signedess mismatch warnings in pointer assignments in Parse_INFO_INS()

dls2.h still emits pedantic warnings like:
dls2.h:112: warning: ISO C does not allow extra ';' outside of a function
... but that might not be avoidable due to the empty-defining of DEFINE_GUID

These, I extracted from my copy of libtimidity that I use in uhexen2 (see at http://uhexen2.svn.sourceforge.net/viewvc/uhexen2/trunk/libs/timidity/).  The code may still be revised further for constification and C++ compiler compatibility.

Regards.
Comment 1 Ozkan Sezer 2011-06-16 04:54:35 UTC
Created attachment 631 [details]
timidity cleanups
Comment 2 Ozkan Sezer 2018-08-02 08:46:34 UTC
This is obsolete now, I think.