Skip to content

Commit

Permalink
[build] Remove global -Wno-deprecated-non-prototype
Browse files Browse the repository at this point in the history
Fix an instance in libevent.

Sink -Wno-deprecated-non-prototype into zlib, it's the only remaining library where this warning fires. (upstream bug madler/zlib#633)

Bug: 1314867
Change-Id: I2547ba1b358ab90ec6dece4f0879b2ebe6f59820
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3615937
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Arthur Eubanks <aeubanks@google.com>
Cr-Commit-Position: refs/heads/main@{#998593}
NOKEYCHECK=True
GitOrigin-RevId: cbba1d4d16d3dfeb51421749cafa34c2666f8b26
  • Loading branch information
aeubanks authored and copybara-github committed May 2, 2022
1 parent 2926950 commit 28bb4c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions third_party/libevent/README.chromium
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ static library using GYP.
6) Remove an unnecessary workaround for OS X 10.4 from kqueue.c. It was causing
problems on macOS Sierra.
7) Change buffer.c to not redefine _GNU_SOURCE.
8) Change _event_strlcpy in strlcpy.c to not use K&R syntax.
5 changes: 1 addition & 4 deletions third_party/libevent/strlcpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp
* Returns strlen(src); if retval >= siz, truncation occurred.
*/
size_t
_event_strlcpy(dst, src, siz)
char *dst;
const char *src;
size_t siz;
_event_strlcpy(char *dst, const char *src, size_t siz)
{
register char *d = dst;
register const char *s = src;
Expand Down

0 comments on commit 28bb4c3

Please sign in to comment.