This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libffi.call/huge_struct.c


This test case seems to be completely broken.

GCC comes out with a ton of warnings, all of which are AFAICS correct.

Should I just delete this test, or does anyone want to try to fix it?

Andrew.



Executing on host: gcc /home/aph/libffi/testsuite/libffi.call/huge_struct.c  -O0 -W -Wall  -I/home/aph/libffi/build/testsuite/../include -I/home/aph/libffi/testsuite/../include  -I/home/aph/libffi/build/testsuite/../include/.. -L/home/aph/libffi/build/testsuite/../.libs  -lffi -lm   -o ./huge_struct.exe    (timeout = 300)
/home/aph/libffi/testsuite/libffi.call/huge_struct.c: In function 'test_large_fn':
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%llu' expects type 'long long unsigned int', but argument 8 has type 'uint64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%lld' expects type 'long long int', but argument 9 has type 'int64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%p' expects type 'void *', but argument 12 has type 'long double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hhu' expects type 'int', but argument 13 has type 'char *'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%llu' expects type 'long long unsigned int', but argument 19 has type 'int32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%lld' expects type 'long long int', but argument 20 has type 'uint64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%.0f' expects type 'double', but argument 21 has type 'int64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%p' expects type 'void *', but argument 23 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hhu' expects type 'int', but argument 24 has type 'long double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hhd' expects type 'int', but argument 25 has type 'char *'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%llu' expects type 'long long unsigned int', but argument 30 has type 'uint32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%lld' expects type 'long long int', but argument 31 has type 'int32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%.0f' expects type 'double', but argument 32 has type 'uint64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%.0f' expects type 'double', but argument 33 has type 'int64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%p' expects type 'void *', but argument 34 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hhu' expects type 'int', but argument 35 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hhd' expects type 'int', but argument 36 has type 'long double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hu' expects type 'int', but argument 37 has type 'char *'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%llu' expects type 'long long unsigned int', but argument 41 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%lld' expects type 'long long int', but argument 42 has type 'uint32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%.0f' expects type 'double', but argument 43 has type 'int32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%.0f' expects type 'double', but argument 44 has type 'uint64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%p' expects type 'void *', but argument 45 has type 'int64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hhu' expects type 'int', but argument 46 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hhd' expects type 'int', but argument 47 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hhu' expects type 'int', but argument 48 has type 'long double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hhd' expects type 'int', but argument 49 has type 'char *'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%llu' expects type 'long long unsigned int', but argument 54 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%lld' expects type 'long long int', but argument 55 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%.0f' expects type 'double', but argument 56 has type 'uint32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%.0f' expects type 'double', but argument 57 has type 'int32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%p' expects type 'void *', but argument 58 has type 'uint64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hhu' expects type 'int', but argument 59 has type 'int64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hhd' expects type 'int', but argument 60 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hu' expects type 'int', but argument 61 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hd' expects type 'int', but argument 62 has type 'long double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%u' expects type 'unsigned int', but argument 63 has type 'char *'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%llu' expects type 'long long unsigned int', but argument 65 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%lld' expects type 'long long int', but argument 66 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%.0f' expects type 'double', but argument 67 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%.0f' expects type 'double', but argument 68 has type 'uint32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%p' expects type 'void *', but argument 69 has type 'int32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hhu' expects type 'int', but argument 70 has type 'uint64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hhd' expects type 'int', but argument 71 has type 'int64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hu' expects type 'int', but argument 72 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hd' expects type 'int', but argument 73 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%u' expects type 'unsigned int', but argument 74 has type 'long double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%d' expects type 'int', but argument 75 has type 'char *'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%llu' expects type 'long long unsigned int', but argument 76 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%lld' expects type 'long long int', but argument 77 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%.0f' expects type 'double', but argument 78 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%.0f' expects type 'double', but argument 79 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%p' expects type 'void *', but argument 80 has type 'uint32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hhd' expects type 'int', but argument 82 has type 'uint64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hu' expects type 'int', but argument 83 has type 'int64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%hd' expects type 'int', but argument 84 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%u' expects type 'unsigned int', but argument 85 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%d' expects type 'int', but argument 86 has type 'long double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%llu' expects type 'long long unsigned int', but argument 87 has type 'char *'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%lld' expects type 'long long int', but argument 88 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%.0f' expects type 'double', but argument 89 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%.0f' expects type 'double', but argument 90 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: format '%p' expects type 'void *', but argument 91 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:151: warning: too many arguments for format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c: At top level:
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:157: warning: unused parameter 'cif'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:157: warning: unused parameter 'userdata'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c: In function 'main':
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:238: warning: missing initializer
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:238: warning: (near initialization for 'retVal.b')
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%llu' expects type 'long long unsigned int', but argument 8 has type 'uint64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%lld' expects type 'long long int', but argument 9 has type 'int64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%p' expects type 'void *', but argument 12 has type 'long double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%hhu' expects type 'int', but argument 13 has type 'char *'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%llu' expects type 'long long unsigned int', but argument 19 has type 'int32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%lld' expects type 'long long int', but argument 20 has type 'uint64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%.0f' expects type 'double', but argument 21 has type 'int64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%p' expects type 'void *', but argument 23 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%hhu' expects type 'int', but argument 24 has type 'long double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%hhd' expects type 'int', but argument 25 has type 'char *'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%llu' expects type 'long long unsigned int', but argument 30 has type 'uint32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%lld' expects type 'long long int', but argument 31 has type 'int32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%.0f' expects type 'double', but argument 32 has type 'uint64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%.0f' expects type 'double', but argument 33 has type 'int64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%p' expects type 'void *', but argument 34 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%hhu' expects type 'int', but argument 35 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%hhd' expects type 'int', but argument 36 has type 'long double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%hu' expects type 'int', but argument 37 has type 'char *'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%llu' expects type 'long long unsigned int', but argument 41 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%lld' expects type 'long long int', but argument 42 has type 'uint32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%.0f' expects type 'double', but argument 43 has type 'int32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%.0f' expects type 'double', but argument 44 has type 'uint64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%p' expects type 'void *', but argument 45 has type 'int64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%hhu' expects type 'int', but argument 46 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: format '%hhd' expects type 'int', but argument 47 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:316: warning: too many arguments for format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%llu' expects type 'long long unsigned int', but argument 8 has type 'uint64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%lld' expects type 'long long int', but argument 9 has type 'int64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%p' expects type 'void *', but argument 12 has type 'long double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%hhu' expects type 'int', but argument 13 has type 'char *'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%llu' expects type 'long long unsigned int', but argument 19 has type 'int32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%lld' expects type 'long long int', but argument 20 has type 'uint64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%.0f' expects type 'double', but argument 21 has type 'int64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%p' expects type 'void *', but argument 23 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%hhu' expects type 'int', but argument 24 has type 'long double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%hhd' expects type 'int', but argument 25 has type 'char *'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%llu' expects type 'long long unsigned int', but argument 30 has type 'uint32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%lld' expects type 'long long int', but argument 31 has type 'int32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%.0f' expects type 'double', but argument 32 has type 'uint64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%.0f' expects type 'double', but argument 33 has type 'int64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%p' expects type 'void *', but argument 34 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%hhu' expects type 'int', but argument 35 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%hhd' expects type 'int', but argument 36 has type 'long double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%hu' expects type 'int', but argument 37 has type 'char *'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%llu' expects type 'long long unsigned int', but argument 41 has type 'int'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%lld' expects type 'long long int', but argument 42 has type 'uint32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%.0f' expects type 'double', but argument 43 has type 'int32_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%.0f' expects type 'double', but argument 44 has type 'uint64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: unknown conversion type character '.' in format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%p' expects type 'void *', but argument 45 has type 'int64_t'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%hhu' expects type 'int', but argument 46 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: format '%hhd' expects type 'int', but argument 47 has type 'double'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:344: warning: too many arguments for format
/home/aph/libffi/testsuite/libffi.call/huge_struct.c: At top level:
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:219: warning: unused parameter 'argc'
/home/aph/libffi/testsuite/libffi.call/huge_struct.c:219: warning: unused parameter 'argv'


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]