sollaires

Untitled

May 5th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.72 KB | None | 0 0
  1. $ ./unixbuild.sh
  2. In file included from Aco.c:1:
  3. ./AntSim.h:174:1: warning: declaration does not declare anything [-Wmissing-declarations]
  4. PACKED( typedef struct {
  5. ^
  6. ./AntSim.h:169:47: note: expanded from macro 'PACKED'
  7. #define PACKED( class_to_pack ) class_to_pack __attribute__( ( __packed__ ) )
  8. ^
  9. ./AntSim.h:179:1: warning: declaration does not declare anything [-Wmissing-declarations]
  10. PACKED( typedef struct {
  11. ^
  12. ./AntSim.h:169:47: note: expanded from macro 'PACKED'
  13. #define PACKED( class_to_pack ) class_to_pack __attribute__( ( __packed__ ) )
  14. ^
  15. Aco.c:134:16: error: use of undeclared identifier 'INT_MAX'
  16. eval_limit = INT_MAX;
  17. ^
  18. 2 warnings and 1 error generated.
  19. xorrand.c:50:9: warning: incompatible pointer types initializing 'char *' with an expression of type 'uint64_t *' (aka 'unsigned long long *') [-Wincompatible-pointer-types]
  20. char* buf = &s[0];
  21. ^ ~~~~~
  22. xorrand.c:52:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  23. if (fp = fopen("/dev/urandom", "rb")) {
  24. ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25. xorrand.c:52:10: note: place parentheses around the assignment to silence this warning
  26. if (fp = fopen("/dev/urandom", "rb")) {
  27. ^
  28. ( )
  29. xorrand.c:52:10: note: use '==' to turn this assignment into an equality comparison
  30. if (fp = fopen("/dev/urandom", "rb")) {
  31. ^
  32. ==
  33. 2 warnings generated.
  34. In file included from AntSim.c:1:
  35. ./AntSim.h:174:1: warning: declaration does not declare anything [-Wmissing-declarations]
  36. PACKED( typedef struct {
  37. ^
  38. ./AntSim.h:169:47: note: expanded from macro 'PACKED'
  39. #define PACKED( class_to_pack ) class_to_pack __attribute__( ( __packed__ ) )
  40. ^
  41. ./AntSim.h:179:1: warning: declaration does not declare anything [-Wmissing-declarations]
  42. PACKED( typedef struct {
  43. ^
  44. ./AntSim.h:169:47: note: expanded from macro 'PACKED'
  45. #define PACKED( class_to_pack ) class_to_pack __attribute__( ( __packed__ ) )
  46. ^
  47. AntSim.c:387:29: warning: format specifies type 'unsigned long long' but the argument has type 'unsigned long' [-Wformat]
  48. printf( "*** %llu %ss\n", arrlenu( items_by_slot[i] ), ItemTypeToString[i] );
  49. ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  50. %lu
  51. ./stb_ds.h:330:21: note: expanded from macro 'arrlenu'
  52. #define arrlenu stbds_arrlenu
  53. ^
  54. ./stb_ds.h:446:31: note: expanded from macro 'stbds_arrlenu'
  55. #define stbds_arrlenu(a) ((a) ? stbds_header(a)->length : 0)
  56. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  57. 3 warnings generated.
  58. In file included from TrailedGraph.c:2:
  59. ./AntSim.h:174:1: warning: declaration does not declare anything [-Wmissing-declarations]
  60. PACKED( typedef struct {
  61. ^
  62. ./AntSim.h:169:47: note: expanded from macro 'PACKED'
  63. #define PACKED( class_to_pack ) class_to_pack __attribute__( ( __packed__ ) )
  64. ^
  65. ./AntSim.h:179:1: warning: declaration does not declare anything [-Wmissing-declarations]
  66. PACKED( typedef struct {
  67. ^
  68. ./AntSim.h:169:47: note: expanded from macro 'PACKED'
  69. #define PACKED( class_to_pack ) class_to_pack __attribute__( ( __packed__ ) )
  70. ^
  71. TrailedGraph.c:35:31: warning: expression result unused [-Wunused-value]
  72. hmgetp( graph.trail, edge )->value;
  73. ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~
  74. 3 warnings generated.
  75. In file included from cli.c:1:
  76. ./AntSim.h:174:1: warning: declaration does not declare anything [-Wmissing-declarations]
  77. PACKED( typedef struct {
  78. ^
  79. ./AntSim.h:169:47: note: expanded from macro 'PACKED'
  80. #define PACKED( class_to_pack ) class_to_pack __attribute__( ( __packed__ ) )
  81. ^
  82. ./AntSim.h:179:1: warning: declaration does not declare anything [-Wmissing-declarations]
  83. PACKED( typedef struct {
  84. ^
  85. ./AntSim.h:169:47: note: expanded from macro 'PACKED'
  86. #define PACKED( class_to_pack ) class_to_pack __attribute__( ( __packed__ ) )
  87. ^
  88. In file included from cli.c:7:
  89. ./././stdstring.h:3244:10: warning: multiple unsequenced modifications to 'tokens' [-Wunsequenced]
  90. *tokens++ = ( *tokens++ = ( const char* )( uintptr_t )n ) ? string : "";
  91. ^ ~~
  92. ./././stdstring.h:3492:18: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types
  93. [-Wincompatible-pointer-types-discards-qualifiers]
  94. strjoin( &with, words, "_" );
  95. ^~~~~
  96. ./././stdstring.h:3261:48: note: passing argument to parameter 'words' here
  97. HEAP char* strjoin( char** string, const char* words[], const char* separator )
  98. ^
  99. cli.c:135:3: warning: implicit declaration of function 'quick_exit' is invalid in C99 [-Wimplicit-function-declaration]
  100. quick_exit( EXIT_FAILURE );
  101. ^
  102. cli.c:141:49: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  103. ParsedItemFile parsed_itemfile = LoadItemFile( input_filename, itemcache_filename );
  104. ^~~~~~~~~~~~~~
  105. ./AntSim.h:224:36: note: passing argument to parameter 'filename' here
  106. ParsedItemFile LoadItemFile( char* filename, char* item_cache_filename );
  107. ^
  108. cli.c:141:65: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  109. ParsedItemFile parsed_itemfile = LoadItemFile( input_filename, itemcache_filename );
  110. ^~~~~~~~~~~~~~~~~~
  111. ./AntSim.h:224:52: note: passing argument to parameter 'item_cache_filename' here
  112. ParsedItemFile LoadItemFile( char* filename, char* item_cache_filename );
  113. ^
  114. cli.c:142:74: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  115. parsed_itemfile.class_specialization = DetermineSpecializationFromFile( base_profile );
  116. ^~~~~~~~~~~~
  117. ./AntSim.h:225:55: note: passing argument to parameter 'fname' here
  118. Specialization DetermineSpecializationFromFile( char* fname );
  119. ^
  120. cli.c:147:3: warning: implicit declaration of function 'quick_exit' is invalid in C99 [-Wimplicit-function-declaration]
  121. quick_exit( EXIT_FAILURE );
  122. ^
  123. 9 warnings generated.
  124. In file included from SimcParser.c:2:
  125. ./AntSim.h:174:1: warning: declaration does not declare anything [-Wmissing-declarations]
  126. PACKED( typedef struct {
  127. ^
  128. ./AntSim.h:169:47: note: expanded from macro 'PACKED'
  129. #define PACKED( class_to_pack ) class_to_pack __attribute__( ( __packed__ ) )
  130. ^
  131. ./AntSim.h:179:1: warning: declaration does not declare anything [-Wmissing-declarations]
  132. PACKED( typedef struct {
  133. ^
  134. ./AntSim.h:169:47: note: expanded from macro 'PACKED'
  135. #define PACKED( class_to_pack ) class_to_pack __attribute__( ( __packed__ ) )
  136. ^
  137. SimcParser.c:43:3: warning: implicit declaration of function 'quick_exit' is invalid in C99 [-Wimplicit-function-declaration]
  138. quick_exit( EXIT_FAILURE );
  139. ^
  140. SimcParser.c:52:3: warning: implicit declaration of function 'quick_exit' is invalid in C99 [-Wimplicit-function-declaration]
  141. quick_exit( EXIT_FAILURE );
  142. ^
  143. SimcParser.c:180:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  144. } while ( line = strtok( 0, "\n" ) );
  145. ~~~~~^~~~~~~~~~~~~~~~~~~
  146. SimcParser.c:180:17: note: place parentheses around the assignment to silence this warning
  147. } while ( line = strtok( 0, "\n" ) );
  148. ^
  149. ( )
  150. SimcParser.c:180:17: note: use '==' to turn this assignment into an equality comparison
  151. } while ( line = strtok( 0, "\n" ) );
  152. ^
  153. ==
  154. SimcParser.c:202:3: warning: implicit declaration of function 'quick_exit' is invalid in C99 [-Wimplicit-function-declaration]
  155. quick_exit( EXIT_FAILURE );
  156. ^
  157. 6 warnings generated.
Advertisement
Add Comment
Please, Sign In to add comment