ev3duder icon indicating copy to clipboard operation
ev3duder copied to clipboard

debug make target compiles `hid.c` without debug flags

Open goretkin opened this issue 2 years ago • 1 comments

https://github.com/c4ev3/ev3duder/blob/5ceca3/Makefile#L107-L109

passing CLFAGS works, but produces several warnings, such as

hidapi/mac/hid.c:48:90: warning: unused parameter 'attr' [-Wunused-parameter]
static int pthread_barrier_init(pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count)
                                                                                         ^
hidapi/mac/hid.c:255:20: warning: comparison of integers of different signs: 'CFIndex' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
                if (chars_copied == len)
                    ~~~~~~~~~~~~ ^  ~~~
hidapi/mac/hid.c:295:20: warning: comparison of integers of different signs: 'CFIndex' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
                if (used_buf_len == len)
                    ~~~~~~~~~~~~ ^  ~~~
hidapi/mac/hid.c:551:65: warning: unused parameter 'result' [-Wunused-parameter]
static void hid_device_removal_callback(void *context, IOReturn result,

goretkin avatar Mar 17 '22 15:03 goretkin