Skip to content

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

@mikkoi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions