Changeset 662b301 in rtems


Ignore:
Timestamp:
Apr 5, 2017, 5:23:09 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
1bf8b25
Parents:
a7dc1550
Message:

dhrystone: Fix warnings

Close #2977.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/benchmarks/dhrystone/dhry_1.c

    ra7dc1550 r662b301  
    1818#include "dhry.h"
    1919
     20#include <inttypes.h>
    2021#include <stdlib.h>
    2122#include <string.h>
     
    218219  printf ("        should be:   Number_Of_Runs + 10\n");
    219220  printf ("Ptr_Glob->\n");
    220   printf ("  Ptr_Comp:          %d\n", (int) Ptr_Glob->Ptr_Comp);
     221  printf ("  Ptr_Comp:          %" PRIdPTR "\n", (intptr_t) Ptr_Glob->Ptr_Comp);
    221222  printf ("        should be:   (implementation-dependent)\n");
    222223  printf ("  Discr:             %d\n", Ptr_Glob->Discr);
     
    229230  printf ("        should be:   DHRYSTONE PROGRAM, SOME STRING\n");
    230231  printf ("Next_Ptr_Glob->\n");
    231   printf ("  Ptr_Comp:          %d\n", (int) Next_Ptr_Glob->Ptr_Comp);
     232  printf ("  Ptr_Comp:          %" PRIdPTR "\n", (intptr_t) Next_Ptr_Glob->Ptr_Comp);
    232233  printf ("        should be:   (implementation-dependent), same as above\n");
    233234  printf ("  Discr:             %d\n", Next_Ptr_Glob->Discr);
     
    284285  }
    285286 
     287  return 0;
    286288}
    287289
Note: See TracChangeset for help on using the changeset viewer.