From a1d3851bcd7404635a0e04846fac7f1561a6e286 Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Thu, 17 Jul 2014 08:14:35 +0200 Subject: [multiple changes] 2014-07-17 Pascal Obry * s-os_lib.ads: Minor comment update. 2014-07-17 Tristan Gingold * sysdep.c: Add ATTRIBUTE_UNUSED to avoid warnings. Fix some indentation. * socket.c: Remove #warning to avoid warning. * expect.c: Indent some preprocessor directives to clarify nested if. Do not use wait.h on PikeOS. Add ATTRIBUTE_UNUSED to remove warnings. * env.c: Fix indentation. Port to PikeOS. * gsocket.h: Port to PikeOS. Remove #warning. * terminals.c: Port to PikeOS. Fix indentation of the stubs. Add ATTRIBUTE_UNUSED to stubs arguments. Fix return statement of stubbed __gnat_setup_parent_communication. * adaint.c: Port to PikeOS. Reindent some preprocessor directives to clarify nested if. Fix indentation. Add missing ATTRIBUTE_UNUSED. 2014-07-17 Robert Dewar * sem_attr.adb: Minor reformatting. From-SVN: r212717 --- gcc/ada/sysdep.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'gcc/ada/sysdep.c') diff --git a/gcc/ada/sysdep.c b/gcc/ada/sysdep.c index 4c4ec49..43550cd 100644 --- a/gcc/ada/sysdep.c +++ b/gcc/ada/sysdep.c @@ -6,7 +6,7 @@ * * * C Implementation File * * * - * Copyright (C) 1992-2013, Free Software Foundation, Inc. * + * Copyright (C) 1992-2014, 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- * @@ -314,7 +314,7 @@ getc_immediate_common (FILE *stream, int *ch, int *end_of_file, int *avail, - int waiting) + int waiting ATTRIBUTE_UNUSED) { #if defined (linux) || defined (sun) \ || defined (__CYGWIN32__) || defined (__MACHTEN__) || defined (__hpux__) \ @@ -785,9 +785,11 @@ extern void __gnat_localtime_tzoff (const time_t *, const int *, long *); void -__gnat_localtime_tzoff (const time_t *timer, const int *is_historic, long *off) +__gnat_localtime_tzoff (const time_t *timer ATTRIBUTE_UNUSED, + const int *is_historic ATTRIBUTE_UNUSED, + long *off ATTRIBUTE_UNUSED) { - struct tm tp; + struct tm tp ATTRIBUTE_UNUSED; /* AIX, HPUX, Sun Solaris */ #if defined (_AIX) || defined (__hpux__) || defined (sun) @@ -853,8 +855,8 @@ __gnat_localtime_tzoff (const time_t *timer, const int *is_historic, long *off) /* Darwin, Free BSD, Linux, where component tm_gmtoff is present in struct tm */ -#elif defined (__APPLE__) || defined (__FreeBSD__) || defined (linux) ||\ - defined (__GLIBC__) +#elif defined (__APPLE__) || defined (__FreeBSD__) || defined (linux) \ + || defined (__GLIBC__) { localtime_r (timer, &tp); *off = tp.tm_gmtoff; -- cgit v1.1