diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-07-17 08:14:35 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-07-17 08:14:35 +0200 |
commit | a1d3851bcd7404635a0e04846fac7f1561a6e286 (patch) | |
tree | e69d504d24e1249b981b7150ceb6cc8107e5e456 /gcc/ada/sysdep.c | |
parent | d2d8b2a70d792987761480ac14301816498a6454 (diff) | |
download | gcc-a1d3851bcd7404635a0e04846fac7f1561a6e286.zip gcc-a1d3851bcd7404635a0e04846fac7f1561a6e286.tar.gz gcc-a1d3851bcd7404635a0e04846fac7f1561a6e286.tar.bz2 |
[multiple changes]
2014-07-17 Pascal Obry <obry@adacore.com>
* s-os_lib.ads: Minor comment update.
2014-07-17 Tristan Gingold <gingold@adacore.com>
* 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 <dewar@adacore.com>
* sem_attr.adb: Minor reformatting.
From-SVN: r212717
Diffstat (limited to 'gcc/ada/sysdep.c')
-rw-r--r-- | gcc/ada/sysdep.c | 14 |
1 files changed, 8 insertions, 6 deletions
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; |