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

Error on compile: "minor is not a function or function pointer" #1

Open
mattfbacon opened this issue May 4, 2020 · 1 comment
Open

Comments

@mattfbacon
Copy link

Full error:

include -I../../../include -fvisibility=hidden -fPIC -DLIBDIR=\"/usr/local/lib\" -DLIBSUBDIR=\"libv4l\" -g -O1 -Wall -Wno-unused -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -o control/libv4lcontrol.o control/libv4lcontrol.c
control/libv4lcontrol.c: In function ‘v4lcontrol_init_flags’:
control/libv4lcontrol.c:260:11: error: called object ‘minor’ is not a function or function pointer
  260 |  minor == minor(st.st_rdev))
      |           ^~~~~
control/libv4lcontrol.c:232:10: note: declared here
  232 |   int i, minor;
      |          ^~~~~
control/libv4lcontrol.c: In function ‘v4lcontrol_create’:
control/libv4lcontrol.c:427:5: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result]
  427 |     ftruncate(shm_fd, V4LCONTROL_SHM_SIZE);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@mattfbacon
Copy link
Author

Fixed it by changing the minor function to gnu_dev_minor. I won't close this since I don't know how to merge it with this repository.

mattfbacon added a commit to mattfbacon/libv4l that referenced this issue Dec 22, 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

No branches or pull requests

1 participant