Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Make error #199

Closed
danuvian opened this issue Oct 20, 2021 · 1 comment
Closed

Make error #199

danuvian opened this issue Oct 20, 2021 · 1 comment

Comments

@danuvian
Copy link

When trying to "make" on Ubuntu 20.04 (already ran "mvn clean install"):

Building ng client. To build a Windows binary, type 'make ng.exe'
mkdir -p nailgun-client/target
cc -Wall -pedantic -O2 -o nailgun-client/target/ng nailgun-client/c/ng.c
In file included from /usr/include/string.h:495,
from /usr/include/x86_64-linux-gnu/sys/un.h:37,
from nailgun-client/c/ng.c:32:
In function ‘strncpy’,
inlined from ‘main’ at nailgun-client/c/ng.c:768:7:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin___strncpy_chk’ output truncated before terminating nul copying as many bytes from a string as its length
-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nailgun-client/c/ng.c: In function ‘main’:
nailgun-client/c/ng.c:757:32: note: length computed here
757 | size_t socket_path_len = strlen(socket_path);
| ^~~~~~~~~~~~~~~~~~~

@danuvian
Copy link
Author

I guess it's just a warning, so it might be OK. But it looks real ugly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant