summaryrefslogtreecommitdiff
path: root/vst
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-18 21:03:18 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-18 21:03:18 +0100
commit7c0d78d164cbce489cea672f110a4f3f96515ea1 (patch)
tree2894c58b8e2ca925f0014b1a3c7e04468f683ac7 /vst
parent35aabe3781239c22f65a87541bde03497abf2743 (diff)
Fix compiler warnings.
Diffstat (limited to 'vst')
-rw-r--r--vst/drumgizmo_vst.cc9
-rw-r--r--vst/input_vst.h2
2 files changed, 8 insertions, 3 deletions
diff --git a/vst/drumgizmo_vst.cc b/vst/drumgizmo_vst.cc
index 4d3ce9f..8a24a0f 100644
--- a/vst/drumgizmo_vst.cc
+++ b/vst/drumgizmo_vst.cc
@@ -132,8 +132,13 @@ DrumGizmoVst::DrumGizmoVst(audioMasterCallback audioMaster)
canProcessReplacing();
isSynth();
- char id[] = "DGV5"; // Four bytes typecasted into an unsigned integer
- setUniqueID(*(unsigned int*)id);
+ union {
+ char cid[4];
+ unsigned int iid;
+ } id;
+
+ memcpy(id.cid, "DGV5", 4); // Four bytes typecasted into an unsigned integer
+ setUniqueID(id.iid);
// setUniqueID((unsigned int)time(NULL));
diff --git a/vst/input_vst.h b/vst/input_vst.h
index e8378c8..668f39c 100644
--- a/vst/input_vst.h
+++ b/vst/input_vst.h
@@ -35,7 +35,7 @@
class InputVST : public AudioInputEngine {
public:
InputVST();
- ~InputVST();
+ virtual ~InputVST();
bool init(Instruments &instruments);