8000 Error on compile: "minor is not a function or function pointer" · Issue #1 · philips/libv4l · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Error on compile: "minor is not a function or function pointer" #1
Open
@mattfbacon

Description

@mattfbacon

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);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0