diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-05-20 19:58:05 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-05-20 19:58:05 +0000 |
commit | b2dea5df6b043f41bc3d5d0df33c601a0a686559 (patch) | |
tree | dfdc43c1c085884c4dbe3000fe9ed4fa60b48782 | |
parent | 09a36bc7935a0ef212762406c0b9492bb7878669 (diff) |
got rid of some minor warnings
svn path=/trunk/externals/hcs/hid/; revision=3040
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | hid.c | 3 |
2 files changed, 5 insertions, 3 deletions
@@ -26,13 +26,12 @@ pd_darwin: hid.pd_darwin endif -# ----------------------- GENERAL ----------------------- +# ----------------------- GENERAL --------------------------------------------- PDEXECUTABLE = ../../../pd/bin/pd CFLAGS = -DUNIX -DPD -O2 -funroll-loops -fomit-frame-pointer \ - -Wall -W -Wshadow -Wstrict-prototypes \ - -Wno-unused -Wno-parentheses -Wno-switch + -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused INCLUDE = -I./ -I../../../pd/src -I./HID\ Utilities\ Source @@ -140,6 +140,7 @@ t_int hid_open(t_hid *x, t_float f) * therefore ignore the redundant open request. To reopen the same device, * send a [close( msg, then an [open( msg. */ if (! x->x_device_open) + { if (hid_open_device(x,x->x_device_number)) { error("[hid] can not open device %d",x->x_device_number); @@ -149,6 +150,8 @@ t_int hid_open(t_hid *x, t_float f) { x->x_device_open = 1; } + } + /* restore the polling state so that when I [tgl] is used to start/stop [hid], * the [tgl]'s state will continue to accurately reflect [hid]'s state */ |