obdev / v-usb

A Firmware-Only USB implementation for Atmel's AVR Microcontrollers
1.22k stars 244 forks source link

g++ warning fixes #9

Open dfries opened 9 years ago

dfries commented 9 years ago

Fixed comment typos and macro #if tests that g++ was complaining about, it complains if SOMETHING isn't defined such as '#if SOMETHING'

v-usb has been working on my project and I haven't had any USB problems.

starkjohann commented 7 years ago

I don't want to merge the warning fix as is, because the documentation for USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH states "Otherwise don't define it or define it to 0". The #if defined would count 0 as defined, too.

Would the warning go away if we put an extern "C" around the entire header, not just the includes at the top?