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

Warnings when building #14

Open
daurnimator opened this issue Jun 1, 2018 · 0 comments
Open

Warnings when building #14

daurnimator opened this issue Jun 1, 2018 · 0 comments

Comments

@daurnimator
Copy link
Contributor

gcc -O2 -fPIC -I/usr/include -c src/unix.c -o src/unix.o -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE
src/unix.c: In function ‘u_readdir_r’:
src/unix.c:2242:2: warning: ‘readdir_r’ is deprecated [-Wdeprecated-declarations]
  return readdir_r(dp, ent, res);
  ^~~~~~
In file included from src/unix.c:46:
/usr/include/dirent.h:183:12: note: declared here
 extern int readdir_r (DIR *__restrict __dirp,
            ^~~~~~~~~
src/unix.c: In function ‘u_reallocarray.constprop’:
src/unix.c:789:14: warning: argument 2 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
  if (!(tmp = realloc(*arr, tmpsiz)))
              ^~~~~~~~~~~~~~~~~~~~~
In file included from src/unix.c:20:
/usr/include/stdlib.h:549:14: note: in a call to allocation function ‘realloc’ declared here
 extern void *realloc (void *__ptr, size_t __size)
              ^~~~~~~
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