Skip to content

Commit

Permalink
Merge pull request #1004 from jamesjer/master
Browse files Browse the repository at this point in the history
Prepare for stricter checking in GCC 14
  • Loading branch information
raphael-proust authored May 3, 2024
2 parents 8292e3d + 0d8725d commit 2d27668
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/unix/config/discover.ml
Original file line number Diff line number Diff line change
Expand Up @@ -652,56 +652,55 @@ struct
int main()
{
struct hostent *he;
struct servent *se;
he =
int x;
x =
gethostbyname_r(
(const char*)NULL,
(struct hostent*)NULL,
(char*)NULL,
(int)0,
(struct hostent**)NULL,
(int*)NULL);
he =
x =
gethostbyaddr_r(
(const char*)NULL,
(const void*)NULL,
(int)0,
(int)0,
(struct hostent*)NULL,
(char*)NULL,
(int)0,
(struct hostent**)NULL,
(int*)NULL);
se =
x =
getservbyname_r(
(const char*)NULL,
(const char*)NULL,
(struct servent*)NULL,
(char*)NULL,
(int)0,
(struct servent**)NULL);
se =
x =
getservbyport_r(
(int)0,
(const char*)NULL,
(struct servent*)NULL,
(char*)NULL,
(int)0,
(struct servent**)NULL);
pr =
x =
getprotoent_r(
(struct protoent*)NULL,
(char*)NULL,
(int)0,
(struct protoent**)NULL);
pr =
x =
getprotobyname_r(
(const char*)NULL,
(struct protoent*)NULL,
(char*)NULL,
(int)0,
(struct protoent**)NULL);
pr =
x =
getprotobynumber_r(
(int)0,
(struct protoent*)NULL,
Expand Down Expand Up @@ -793,7 +792,7 @@ struct

int main()
{
int (*mincore_ptr)(const void*, size_t, char*) = mincore;
int (*mincore_ptr)(void*, size_t, unsigned char*) = mincore;
return (int)(mincore_ptr == NULL);
}
|}
Expand Down
1 change: 1 addition & 0 deletions src/unix/unix_c/unix_getprotoby_getservby_job.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#define ARGS(args...) args

#include <errno.h>
#include <caml/alloc.h>
#include <caml/fail.h>
#include <caml/memory.h>
Expand Down

0 comments on commit 2d27668

Please sign in to comment.