Mercurial > hg > CbC > CbC_gcc
diff gcc/ada/socket.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/ada/socket.c Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/ada/socket.c Thu Oct 25 07:37:49 2018 +0900 @@ -6,7 +6,7 @@ * * * C Implementation File * * * - * Copyright (C) 2003-2015, Free Software Foundation, Inc. * + * Copyright (C) 2003-2018, Free Software Foundation, Inc. * * * * GNAT is free software; you can redistribute it and/or modify it under * * terms of the GNU General Public License as published by the Free Soft- * @@ -31,6 +31,8 @@ /* This file provides a portable binding to the sockets API */ +#define ATTRIBUTE_UNUSED __attribute__((unused)) + /* Ensure access to errno is thread safe. */ #define _REENTRANT #define _THREAD_SAFE @@ -95,7 +97,7 @@ /* Disable the sending of SIGPIPE for writes on a broken stream */ void -__gnat_disable_sigpipe (int fd) +__gnat_disable_sigpipe (int fd ATTRIBUTE_UNUSED) { #ifdef SO_NOSIGPIPE int val = 1;