Bläddra i källkod

x86: Silence printf format warnings.

tags/mesa-7.7-1
Vinson Lee 15 år sedan
förälder
incheckning
fab161f287
1 ändrade filer med 2 tillägg och 12 borttagningar
  1. 2
    12
      src/mesa/x86/gen_matypes.c

+ 2
- 12
src/mesa/x86/gen_matypes.c Visa fil

@@ -61,21 +61,11 @@ do { \
printf( "\n" ); \
} while (0)

#if defined(__BEOS__) || defined(__HAIKU__) || defined(_LP64)
#define OFFSET( s, t, m ) \
printf( "#define %s\t%ld\n", s, offsetof( t, m ) );
#else
#define OFFSET( s, t, m ) \
printf( "#define %s\t%d\n", s, offsetof( t, m ) );
#endif
printf( "#define %s\t%lu\n", s, (unsigned long) offsetof( t, m ) );

#if defined(__BEOS__) || defined(__HAIKU__) || defined(_LP64)
#define SIZEOF( s, t ) \
printf( "#define %s\t%ld\n", s, sizeof(t) );
#else
#define SIZEOF( s, t ) \
printf( "#define %s\t%d\n", s, sizeof(t) );
#endif
printf( "#define %s\t%lu\n", s, (unsigned long) sizeof(t) );

#define DEFINE( s, d ) \
printf( "#define %s\t0x%x\n", s, d );

Laddar…
Avbryt
Spara