diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-18 21:03:18 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-18 21:03:18 +0100 |
commit | 7c0d78d164cbce489cea672f110a4f3f96515ea1 (patch) | |
tree | 2894c58b8e2ca925f0014b1a3c7e04468f683ac7 /vst/drumgizmo_vst.cc | |
parent | 35aabe3781239c22f65a87541bde03497abf2743 (diff) |
Fix compiler warnings.
Diffstat (limited to 'vst/drumgizmo_vst.cc')
-rw-r--r-- | vst/drumgizmo_vst.cc | 9 |
1 files changed, 7 insertions, 2 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)); |