Changeset 7b369af in rtems


Ignore:
Timestamp:
Apr 11, 2013, 11:58:33 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
f205c18f
Parents:
dc76d98
Message:

testsuites: Fix warnings

Location:
testsuites
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • testsuites/fstests/fsbdpart01/init.c

    rdc76d98 r7b369af  
    197197
    198198  test_logical_disks(&ide_part_table_rdax [0], false);
     199#pragma GCC diagnostic push
     200#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    199201  sc = rtems_ide_part_table_initialize(rda);
     202#pragma GCC diagnostic pop
    200203  ASSERT_SC(sc);
    201204  test_logical_disks(&ide_part_table_rdax [0], true);
  • testsuites/fstests/support/fstest_support.c

    rdc76d98 r7b369af  
    3030#include "pmacros.h"
    3131
    32 volatile void *prevent_compiler_optimizations;
     32void *volatile prevent_compiler_optimizations;
    3333
    3434/* Break out of a chroot() environment in C */
  • testsuites/psxtests/psxfile01/psxfile01.scn

    rdc76d98 r7b369af  
    33/
    44....dev/
    5 ........console (device 0, 0)
     5........console_a (device 0, 0)
     6........console (device 0, 0)
     7........console_b (device 0, 1)
    68***************      End of Dump       ***************
    79stat of /dev/console
    810....st_dev     (0xfffe:0x0)
    9 ....st_ino     3  may vary by small amount
     11....st_rdev    (0x0:0x0)
     12....st_ino     4  may vary by small amount
    1013....mode  = 00020755
    1114....nlink = 1
     
    1518....mtime = Fri Jan  1 00:00:00 1988
    1619....ctime = Fri Jan  1 00:00:00 1988
    17 ....st_blksize 80
     20....st_blksize 0
    1821....st_blocks  0
    1922
     
    3235rmdir /fred
    3336rmdir /tmp/bha
    34 unlink /dev/tty
    3537mknod /dev/test_console
    3638mknod /dev/tty/S3
     
    4951Attempt to recreate /tmp/tom
    5052create /tmp/john
    51 tcdrain /tmp/john
    5253Attempt to create a file, open in read-only mode and truncate it
    5354Exercise the reentrant version _link_r -- Expect ENOENT
     
    8687stat( /tmp/joel ) returned
    8788....st_dev     (0xfffe:0x0)
    88 ....st_ino     15  may vary by small amount
     89....st_rdev    (0x0:0x0)
     90....st_ino     17  may vary by small amount
    8991....mode  = 00100700
    9092....nlink = 1
     
    119121stat( /tmp/joel ) returned
    120122....st_dev     (0xfffe:0x0)
    121 ....st_ino     16  may vary by small amount
     123....st_rdev    (0x0:0x0)
     124....st_ino     18  may vary by small amount
    122125....mode  = 00100700
    123126....nlink = 1
     
    131134stat of /tmp/j
    132135stat(/tmp/j) returned -1 (errno=2)
    133 ....st_dev     (0xfffe:0x0)
    134 ....st_ino     3  may vary by small amount
    135 ....mode  = 00020755
    136 ....nlink = 1
    137 ....uid = 0
    138 ....gid = 0
    139 ....atime = Fri Jan  1 00:00:00 1988
    140 ....mtime = Fri Jan  1 00:00:00 1988
    141 ....ctime = Fri Jan  1 00:00:00 1988
    142 ....st_blksize 80
     136....st_dev     (0x0:0x0)
     137....st_rdev    (0x0:0x0)
     138....st_ino     0  may vary by small amount
     139....mode  = 00000000
     140....nlink = 0
     141....uid = 0
     142....gid = 0
     143....atime = Thu Jan  1 00:00:00 1970
     144....mtime = Thu Jan  1 00:00:00 1970
     145....ctime = Thu Jan  1 00:00:00 1970
     146....st_blksize 0
    143147....st_blocks  0
    144148fopen of /tmp/j
     
    150154(5) 26 characters written to the file
    151155....st_dev     (0xfffe:0x0)
    152 ....st_ino     17  may vary by small amount
     156....st_rdev    (0x0:0x0)
     157....st_ino     19  may vary by small amount
    153158....mode  = 00100644
    154159....nlink = 1
     
    166171This is call 5 to fprintf
    167172....st_dev     (0xfffe:0x0)
    168 ....st_ino     17  may vary by small amount
     173....st_rdev    (0x0:0x0)
     174....st_ino     19  may vary by small amount
    169175....mode  = 00100644
    170176....nlink = 1
     
    179185/
    180186....dev/
    181 ........console (device 0, 0)
     187........console_a (device 0, 0)
     188........console (device 0, 0)
     189........console_b (device 0, 1)
    182190........tty/
    183191............S3 (device 255, 128)
     
    196204truncate /tmp/j to length of 40
    197205....st_dev     (0xfffe:0x0)
    198 ....st_ino     17  may vary by small amount
     206....st_rdev    (0x0:0x0)
     207....st_ino     19  may vary by small amount
    199208....mode  = 00100644
    200209....nlink = 1
     
    209218/
    210219....dev/
    211 ........console (device 0, 0)
     220........console_a (device 0, 0)
     221........console (device 0, 0)
     222........console_b (device 0, 1)
    212223........tty/
    213224............S3 (device 255, 128)
     
    230241/
    231242....dev/
    232 ........console (device 0, 0)
     243........console_a (device 0, 0)
     244........console (device 0, 0)
     245........console_b (device 0, 1)
    233246........tty/
    234247............S3 (device 255, 128)
  • testsuites/psxtests/psxfile01/test.c

    rdc76d98 r7b369af  
    3636#include <errno.h>
    3737#include <string.h>
     38#include <inttypes.h>
    3839#include <ctype.h>
    3940#include <reent.h>
     
    8182void dump_statbuf( struct stat *buf )
    8283{
    83   int        major1;
    84   int        minor1;
    85   int        major2;
    86   int        minor2;
     84  rtems_device_major_number major1;
     85  rtems_device_minor_number minor1;
     86  rtems_device_major_number major2;
     87  rtems_device_minor_number minor2;
    8788
    8889  rtems_filesystem_split_dev_t( buf->st_dev, major1, minor1 );
    8990  rtems_filesystem_split_dev_t( buf->st_rdev, major2, minor2 );
    9091
    91   printf( "....st_dev     (0x%x:0x%x)\n", major1, minor1 );
     92  printf( "....st_dev     (0x%" PRIx32 ":0x%" PRIx32 ")\n", major1, minor1 );
     93  printf( "....st_rdev    (0x%" PRIx32 ":0x%" PRIx32 ")\n", major2, minor2 );
    9294  printf( "....st_ino     %" PRIxino_t "  may vary by small amount\n", buf->st_ino );
    9395  printf( "....mode  = %08" PRIomode_t "\n", buf->st_mode );
  • testsuites/psxtmtests/psxtmcond05/init.c

    rdc76d98 r7b369af  
    1313
    1414#include <timesys.h>
     15#include <pthread.h>
    1516#include <rtems/timerdrv.h>
    1617#include "test_support.h"
  • testsuites/psxtmtests/psxtmcond08/init.c

    rdc76d98 r7b369af  
    2828#include <time.h>
    2929#include <errno.h>
     30#include <sched.h>
    3031#include <timesys.h>
    3132#include <tmacros.h>
     
    8990  #elif defined(USE_TIMEDWAIT_WAIT_VALUE_IN_PAST)
    9091    {
    91       long end_time;
    92 
    9392      /* override sleepTime with something obviously in the past */
    9493      sleepTime.tv_sec = 0;
     
    9796      /* this does all the work of timedwait but immediately returns */
    9897      rc = pthread_cond_timedwait( &CondID, &MutexID, &sleepTime );
    99       end_time = benchmark_timer_read();
    10098      rtems_test_assert(rc == ETIMEDOUT);
     99      benchmark_timer_read();
    101100    }
    102101  #endif
  • testsuites/psxtmtests/psxtmthread02/init.c

    rdc76d98 r7b369af  
    2020void *POSIX_Init(void *argument);
    2121void benchmark_pthread_create(void);
    22 void thread(void *argument);
     22void *thread(void *argument);
    2323
    2424void benchmark_pthread_create(void)
     
    4747}
    4848
    49 void thread(
     49void *thread(
    5050  void *argument
    5151)
    5252{
    5353  //Empty thread used in pthread_create().
     54  return NULL;
    5455}
    5556
  • testsuites/sptests/spatomic02/init.c

    rdc76d98 r7b369af  
    2424  rtems_id           id;
    2525  rtems_status_code  status;
    26   bool               allDone;
    2726
    2827  /* Put start of test message */
  • testsuites/sptests/spatomic03/init.c

    rdc76d98 r7b369af  
    2424  rtems_id           id;
    2525  rtems_status_code  status;
    26   bool               allDone;
    2726
    2827  /* Put start of test message */
  • testsuites/sptests/spatomic04/init.c

    rdc76d98 r7b369af  
    2424  rtems_id           id;
    2525  rtems_status_code  status;
    26   bool               allDone;
    2726
    2827  /* Put start of test message */
  • testsuites/sptests/spatomic05/init.c

    rdc76d98 r7b369af  
    2424  rtems_id           id;
    2525  rtems_status_code  status;
    26   bool               allDone;
    2726
    2827  /* Put start of test message */
  • testsuites/sptests/spatomic06/init.c

    rdc76d98 r7b369af  
    2424  rtems_id           id;
    2525  rtems_status_code  status;
    26   bool               allDone;
    2726
    2827  /* Put start of test message */
  • testsuites/sptests/spatomic07/init.c

    rdc76d98 r7b369af  
    2424  rtems_id           id;
    2525  rtems_status_code  status;
    26   bool               allDone;
    2726
    2827  /* Put start of test message */
  • testsuites/sptests/spinternalerror01/init.c

    rdc76d98 r7b369af  
    2929{
    3030  _Internal_error_Occurred( FATAL_SOURCE, FATAL_IS_INTERNAL, FATAL_ERROR );
    31 
    32   return 0;
    3331}
    3432
  • testsuites/sptests/spinternalerror02/init.c

    rdc76d98 r7b369af  
    2424{
    2525  rtems_fatal_code error = 0;
    26   const char *desc_last = NULL;
    27   const char *desc;
     26  const char *desc = NULL;
     27  const char *desc_last;
    2828
    2929  do {
     
    4040{
    4141  rtems_fatal_source source = 0;
    42   const char *desc_last = NULL;
    43   const char *desc;
     42  const char *desc = NULL;
     43  const char *desc_last;
    4444
    4545  do {
Note: See TracChangeset for help on using the changeset viewer.