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

macOS wait() related build error. #2

Open
cederom opened this issue Jun 22, 2024 · 0 comments
Open

macOS wait() related build error. #2

cederom opened this issue Jun 22, 2024 · 0 comments

Comments

@cederom
Copy link

cederom commented Jun 22, 2024

There is a build error on macOS 12.7.5 (MacBookPro2015 x86_64) and XCode 13.1

% uname -a
Darwin XXX.local 21.6.0 Darwin Kernel Version 21.6.0: Wed Apr 24 06:02:02 PDT 2024; root:xnu-8020.240.18.708.4~1/RELEASE_X86_64 x86_64
% cd bouffalo_isp.git; mkdir build; cd build; cmake ..; make

(..)
/Users/XXX/bouffalo_isp.git/main.c:229:13: error: static declaration of 'wait' follows non-static declaration
static void wait(uint32_t wait)
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/sys/wait.h:248:9: note: previous declaration is here
pid_t   wait(int *) __DARWIN_ALIAS_C(wait);
        ^
/Users/XXX/bouffalo_isp.git/main.c:260:24: warning: incompatible function pointer types initializing 'void (*)(uint32_t)' (aka 'void (*)(unsigned int)') with an expression of type 'pid_t (int *)' (aka 'int (int *)') [-Wincompatible-function-pointer-types]
    .wait            = wait,
                       ^~~~
% git log -1
commit 7caf6444f3631a8e887271295f5c6be74f49dfa9 (HEAD -> main, origin/main, origin/HEAD)
Author: jzlv <[email protected]>
Date:   Fri Jan 5 11:04:20 2024 +0800

    first commit
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