-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
build error in usddeck.c (array subscript has type) #418
Comments
@tugayalperen: This was not picked up by the automated build tests. It is related to a PR I recently created. Could you share details about your build environment (which compiler? Do you have any outstanding changes? Any custom configuration in config.mk?). |
@whoenig I'm having this same error when trying to make under the "crazyflie-firmware" directory from the terminal. I cloned the repo, initialized and updated submodules, and ran make. As far as I know i don't have any custom configurations. If it helps, i'm running this on laptop running ubuntu 16.04. |
Updating your compiler should resolve the issue. I am running locally the following version:
|
I can confirm that, version change solves the problem. |
That fixed it, thanks |
Seems as this is solved? If not please re-open |
Hi, I found a simple solution to that issue (USC-ACTLab#1), just a simple C type cast, which has the nice side effect, that not everyone needs to upgrade the official compiler in Ubunutu 16.04. As @whoenig said, we could reopen this issue and apply this change, if desired. |
Fixes #418: compilation error due to isspace() in usddeck.c
Changed color of progressbar in log-config and changes column-headers
@whoenig : When repo is cloned as instructed, there is on error respond to make command such as:
src/deck/drivers/src/usddeck.c: In function 'f_gets_without_comments':
src/deck/drivers/src/usddeck.c:238:5: error: array subscript has type 'char' [-Werror=char-subscripts]
if (isspace(c)) {
^
cc1: all warnings being treated as errors
tools/make/targets.mk:26: recipe for target 'usddeck.o' failed
make[1]: *** [usddeck.o] Error 1
Makefile:327: recipe for target 'build' failed
make: *** [build] Error 2
It has nothing about this issue, this is for micro sd deck I guess, since I am not using this deck, by commenting out problematic section, I am able to make the project and fly.
Originally posted by @tugayalperen in #409 (comment)
The text was updated successfully, but these errors were encountered: