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

fix compile warning #22

Merged
merged 1 commit into from
Feb 4, 2022
Merged

fix compile warning #22

merged 1 commit into from
Feb 4, 2022

Conversation

DeeNewcum
Copy link
Contributor

This fixes the following compile warning:

pi400kb/pi400.c: In function ‘modprobe_libcomposite’:                                                                                                                                         
pi400kb/pi400.c:82:37: warning: passing argument 2 of ‘execv’ from incompatible pointer type [-Wincompatible-pointer-types]                                                                   
   82 |         execv("/usr/sbin/modprobe", argv);                                                                                                                                            
      |                                     ^~~~                                                                                                                                              
      |                                     |                                                                                                                                                 
      |                                     const char **                                                                                                                                     
In file included from pi400kb/pi400.c:14:                                                                                                                                                     
/usr/include/unistd.h:563:51: note: expected ‘char * const*’ but argument is of type ‘const char **’                                                                                          
  563 | extern int execv (const char *__path, char *const __argv[])                                                                                                                           
      |                                       ~~~~~~~~~~~~^~~~~~~~                                                                                                                            

pi400kb/pi400.c: In function ‘modprobe_libcomposite’:
pi400kb/pi400.c:82:37: warning: passing argument 2 of ‘execv’ from incompatible pointer type [-Wincompatible-pointer-types]
   82 |         execv("/usr/sbin/modprobe", argv);
      |                                     ^~~~
      |                                     |
      |                                     const char **
In file included from pi400kb/pi400.c:14:
/usr/include/unistd.h:563:51: note: expected ‘char * const*’ but argument is of type ‘const char **’
  563 | extern int execv (const char *__path, char *const __argv[])
      |                                       ~~~~~~~~~~~~^~~~~~~~
@Gadgetoid
Copy link
Owner

Aha! Thank you!

@Gadgetoid Gadgetoid merged commit 214abab into Gadgetoid:main Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants