-
Notifications
You must be signed in to change notification settings - Fork 985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix mac address for rndis response #305
Conversation
- remove cflags -fshort-enums - clean up webserver descriptor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the suppression of the lto-type-mismatch warning, and check if you get errors? I think the short-enum thing isn't yet correct.
- remove -Wno-error=lto-type-mismatch - change back to unsigned int
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hathach, I'm still getting the warnings about the enum size mismatches, but I'm willing to just say it's due to my older version of gcc 7.3....
I'm happy to accept this PR, as it's likely my enum issues are something unique to my installation. I'll let you know if I solve it. Removing the warning suppression means that if this issue happens for others, it'll be evident.
Yeah, there is reason that option is there. I was using gcc 7 back then. Eventually it will go away.
@hathach Adding |
@pigrew I have no idea, I installed it from the xpac https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack since there is no official apt any more. It is the same as ci which doesn't throw out warnings as well. What is your warning message ? |
Perhaps I should do a fresh checkout of tinyusb... (ADDENDUM: didn't help) Bunches of lines like:
|
This is probably the issue with pre-built nanolib library by ARM on windows, the pre-built from XPacks can have slightly difference. Let's revert to have short-enum back, we could revisit this later on. Surely it is there for a reason :) |
this PR will fix the issue with optimization option with tud_descriptor_string_cb() for #304 . The option accidentally allow the existence of
tud_network_mac_address
. GCC is very smart to detect that tud_network_mac_address isn't used since the OID_802_3_CURRENT_ADDRESS, OID_802_3_PERMANENT_ADDRESS only use the pointer address only.Again, Linux driver is more forgiving on this matter than Windows :D