Skip to content

Conversation

@ffainelli
Copy link

Fixes the following build warning:

In file included from busy.c:3:
/home/buildroot/instance-0/output-1/host/mips-buildroot-linux-uclibc/sysroot/usr/include/pthread.h:164:36: note: expected 'void * (*)(void )' but argument is of type 'void * ()(void)'
164 | void (__start_routine) (void *),
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
busy.c:6:7: note: 'loop' declared here
6 | void *loop()
| ^~~~

tripplet and others added 5 commits July 2, 2025 20:44
[Upstream: opsengine#48]
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
- sys/sysctl.h has been deprecated and should be removed
- Adds missing libgen.h include when calling basename()

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
[Upstream: opsengine#109]
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
[Upstream: opsengine#61]
We do not use anything from this header

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
[Upstream: opsengine#110]
loop is passed to pthread_create() which requires the following
prototype to be used: void *(*start_routine) (void *)

Correct the signature to avoid such warnings:

In file included from busy.c:3:
/home/buildroot/instance-0/output-1/host/mips-buildroot-linux-uclibc/sysroot/usr/include/pthread.h:164:36: note: expected 'void * (*)(void *)' but argument is of type 'void * (*)(void)'
  164 |                            void *(*__start_routine) (void *),
      |                            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
busy.c:6:7: note: 'loop' declared here
    6 | void *loop()
      |       ^~~~

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
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.

5 participants