-
Notifications
You must be signed in to change notification settings - Fork 220
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
OTBR_REST=ON: compile error in hash table of status codes #587
Comments
@tttttangTH Any ideas? |
This appears to be a gcc bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60970 I think the only fixes are:
|
I was fearing 2, since this is a vendored-OpenWrt toolchain. |
Will fix it soon. |
@tttttangTH What about we avoid using a hash map by a static function? const char *GetHttpStatus(ResponseCode aCode)
{
switch (aCode)
{
case ...:
}
} Since the number of the response codes is static, we don't really need a map. |
Yes, if we need to define another hash function for this, it does bring more complexity compared to just use |
Confirmed that it works. Thanks! |
Describe the bug
When compiling ot-br-posix on an older OpenWrt toolchain and enabling
-DOTBR_REST=ON
I am getting the following compile error:To Reproduce Information to reproduce the behavior, including:
Expected behavior A clear and concise description of what you expected to happen.
Console/log output If applicable, add console/log output to help explain your problem.
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: