kinect_upload_fw: fix a -Wstrict-aliasing warning
authorAntonio Ospite <ospite@studenti.unina.it>
Thu, 29 Sep 2011 21:20:26 +0000 (23:20 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Thu, 29 Sep 2011 21:40:12 +0000 (23:40 +0200)
commitdc91fcdbc1dc8727ef17f1c8d13e818db2910ac5
tree69b7f7d7dafe1cefbaa7f3b9b41c0ade671cb517
parentb1db4ec521ced6df13a131ad070858c3dc422dc8
kinect_upload_fw: fix a -Wstrict-aliasing warning

kinect_upload_fw.c:87:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

Use a union when there is the need to use the same memory for variables
of incompatible types (especially if they have different storage size).
kinect_upload_fw/kinect_upload_fw.c