Skip to content
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

passing arguments from incompatible pointer type on featue/toggle-hook branch #10

Open
Hermann-SW opened this issue Oct 19, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Hermann-SW
Copy link

pi@raspberrypi400:~/test/pi400kb/build $ make
Scanning dependencies of target pi400kb
[  5%] Building C object CMakeFiles/pi400kb.dir/pi400.c.o
/home/pi/test/pi400kb/pi400.c: In function \u2018modprobe_libcomposite\u2019:
/home/pi/test/pi400kb/pi400.c:46:37: warning: passing argument 2 of \u2018execv\u2019 from incompatible pointer type [-Wincompatible-pointer-types]
         execv("/usr/sbin/modprobe", argv);
                                     ^~~~
In file included from /home/pi/test/pi400kb/pi400.c:13:
/usr/include/unistd.h:563:51: note: expected \u2018char * const*\u2019 but argument is of type \u2018const char **\u2019
 extern int execv (const char *__path, char *const __argv[])
                                       ~~~~~~~~~~~~^~~~~~~~
[ 11%] Building C object CMakeFiles/pi400kb.dir/gadget-hid.c.o
...
@Gadgetoid Gadgetoid added the bug Something isn't working label Oct 21, 2021
@Gadgetoid
Copy link
Owner

I’ll admit I saw these and was being lazy.

I’m going to enforce “-Werror” to stop this stuff creeping in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants