commit e3954613bd4365cac43dd6f7b89ef73e82c56936
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Sun Feb 28 13:25:19 2016 -0500
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Sun Feb 28 13:25:19 2016 -0500
opl: Fix compile errors.
I think these were introduced when functions in the file were made
static, eg.
"static declaration of 'OPL3_EnvelopeGenOff' follows non-static declaration"
Make function prototypes static where appropriate.
---
opl/opl3.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/opl/opl3.c b/opl/opl3.c
index 81ef0f6a..974ae9e8 100644
--- a/opl/opl3.c
+++ b/opl/opl3.c
@@ -388,11 +388,11 @@ static const envelope_sinfunc envelope_sin[8] = {
OPL3_EnvelopeCalcSin7
};
-void OPL3_EnvelopeGenOff(opl3_slot *slot);
-void OPL3_EnvelopeGenAttack(opl3_slot *slot);
-void OPL3_EnvelopeGenDecay(opl3_slot *slot);
-void OPL3_EnvelopeGenSustain(opl3_slot *slot);
-void OPL3_EnvelopeGenRelease(opl3_slot *slot);
+static void OPL3_EnvelopeGenOff(opl3_slot *slot);
+static void OPL3_EnvelopeGenAttack(opl3_slot *slot);
+static void OPL3_EnvelopeGenDecay(opl3_slot *slot);
+static void OPL3_EnvelopeGenSustain(opl3_slot *slot);
+static void OPL3_EnvelopeGenRelease(opl3_slot *slot);
envelope_genfunc envelope_gen[5] = {
OPL3_EnvelopeGenOff,
@@ -703,7 +703,7 @@ static void OPL3_SlotCalcFB(opl3_slot *slot)
// Channel
//
-void OPL3_ChannelSetupAlg(opl3_channel *channel);
+static void OPL3_ChannelSetupAlg(opl3_channel *channel);
static void OPL3_ChannelUpdateRhythm(opl3_chip *chip, Bit8u data)
{