diff options
author | Max Horn | 2011-05-02 14:42:08 +0200 |
---|---|---|
committer | Max Horn | 2011-05-02 16:31:31 +0200 |
commit | 59e77ed66779d33a14a5f4d2a5885a70b793f36f (patch) | |
tree | 3ca3827f015218ff995faa8be78e21cd631be8ff /audio/softsynth | |
parent | 58eebff8039bb5cfc9a66bcfadfe078abb94556f (diff) | |
download | scummvm-rg350-59e77ed66779d33a14a5f4d2a5885a70b793f36f.tar.gz scummvm-rg350-59e77ed66779d33a14a5f4d2a5885a70b793f36f.tar.bz2 scummvm-rg350-59e77ed66779d33a14a5f4d2a5885a70b793f36f.zip |
ALL: Mark printf and various other symbols as forbidden
Right now, a few places in the frontend code still use printf and
consorts. We mark the affected files with a FIXME for now, and
add a dedicated exception for each. To be fixed!
Also tweak FORBIDDEN_SYMBOL_REPLACEMENT to hopefully really always
enforce a compiler error
Diffstat (limited to 'audio/softsynth')
-rw-r--r-- | audio/softsynth/mt32.cpp | 2 | ||||
-rw-r--r-- | audio/softsynth/mt32/synth.cpp | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/audio/softsynth/mt32.cpp b/audio/softsynth/mt32.cpp index 0b84a5623b..5371be60b3 100644 --- a/audio/softsynth/mt32.cpp +++ b/audio/softsynth/mt32.cpp @@ -351,7 +351,7 @@ void MidiDriver_MT32::send(uint32 b) { void MidiDriver_MT32::setPitchBendRange(byte channel, uint range) { if (range > 24) { - printf("setPitchBendRange() called with range > 24: %d", range); + warning("setPitchBendRange() called with range > 24: %d", range); } byte benderRangeSysex[9]; benderRangeSysex[0] = 0x41; // Roland diff --git a/audio/softsynth/mt32/synth.cpp b/audio/softsynth/mt32/synth.cpp index 4d1c612942..112527cc71 100644 --- a/audio/softsynth/mt32/synth.cpp +++ b/audio/softsynth/mt32/synth.cpp @@ -19,6 +19,12 @@ * IN THE SOFTWARE. */ +// FIXME: Avoid using printf +#define FORBIDDEN_SYMBOL_EXCEPTION_printf + +// FIXME: Avoid using vprintf +#define FORBIDDEN_SYMBOL_EXCEPTION_vprintf + #include <math.h> #include <string.h> #include <stdlib.h> |