aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sysdep.c
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-17 06:14:35 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-17 06:14:35 +0000
commit8cb1db0dea3d9776c0cbe0ac7bb05387f4b410be (patch)
treee69d504d24e1249b981b7150ceb6cc8107e5e456 /gcc/ada/sysdep.c
parentc1efebf99e1d1fc1f196fbe3b3222ac3cc19c262 (diff)
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212717 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sysdep.c')
-rw-r--r--gcc/ada/sysdep.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gcc/ada/sysdep.c b/gcc/ada/sysdep.c
index 4c4ec49d8c9..43550cd894b 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;