with unused attribute.
* intrinsics/system_clock.c (system_clock_4, system_clock_8):
Remove unused variable.
* intrinsics/umask.c: Include unistd.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130561
138bc75d-0d04-0410-961f-
82ee72b054a4
+2007-12-01 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+ * intrinsic/stat.c (stat_i4_sub_0, stat_i8_sub_0): Mark parameter
+ with unused attribute.
+ * intrinsics/system_clock.c (system_clock_4, system_clock_8):
+ Remove unused variable.
+ * intrinsics/umask.c: Include unistd.h.
+
2007-11-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/34291
static void
stat_i4_sub_0 (char *name, gfc_array_i4 *sarray, GFC_INTEGER_4 *status,
- gfc_charlen_type name_len, int is_lstat)
+ gfc_charlen_type name_len, int is_lstat __attribute__ ((unused)))
{
int val;
char *str;
static void
stat_i8_sub_0 (char *name, gfc_array_i8 *sarray, GFC_INTEGER_8 *status,
- gfc_charlen_type name_len, int is_lstat)
+ gfc_charlen_type name_len, int is_lstat __attribute__ ((unused)))
{
int val;
char *str;
GFC_INTEGER_4 *count_max)
{
GFC_INTEGER_4 cnt;
- GFC_INTEGER_4 rate;
GFC_INTEGER_4 mx;
#if defined(HAVE_SYS_TIME_H) && defined(HAVE_GETTIMEOFDAY)
cnt = ucnt - GFC_INTEGER_4_HUGE - 1;
else
cnt = ucnt;
- rate = TCK;
mx = GFC_INTEGER_4_HUGE;
}
else
GFC_INTEGER_8 *count_max)
{
GFC_INTEGER_8 cnt;
- GFC_INTEGER_8 rate;
GFC_INTEGER_8 mx;
#if defined(HAVE_SYS_TIME_H) && defined(HAVE_GETTIMEOFDAY)
cnt = ucnt;
mx = GFC_INTEGER_8_HUGE;
}
- rate = TCK;
}
else
{
#include <sys/stat.h>
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
+
/* SUBROUTINE UMASK(MASK, OLD)
INTEGER, INTENT(IN) :: MASK
INTEGER, INTENT(OUT), OPTIONAL :: OLD */