Skip to content

Missing header <unistd.h> from file check.c #186

Description

@mikkoi
[ 17%] Building C object src/CMakeFiles/check.dir/check.c.o
/Users/[******]/check/src/check.c:393:9: warning: implicitly declaring library function '_exit' with type
      'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
        _exit(1);
        ^
/Users/[******]/check/src/check.c:393:9: note: include the header <unistd.h> or explicitly provide a declaration for '_exit'
/Users/[******]/check/src/check.c:604:16: warning: result of comparison of constant 4294967295 with expression of type
      'clockid_t' is always false [-Wtautological-constant-out-of-range-compare]
    if(clockid == -1)
       ~~~~~~~ ^  ~~
2 warnings generated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions