Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.44 KB | None | 0 0
  1. xubuntu@xubuntu-VirtualBox:~/Scrivania/objectStore2019$ make
  2. In file included from ./api.h:4:0,
  3. from api.c:1:
  4. ././config.h:12:41: warning: C++ style comments are not allowed in ISO C90
  5. #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
  6. ^
  7. ././config.h:12:41: warning: (this will be reported only once per input file)
  8. In file included from ./api.h:5:0,
  9. from api.c:1:
  10. ././myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
  11. // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
  12. ^
  13. ././myerror.h:18:1: warning: (this will be reported only once per input file)
  14. In file included from ././messages.h:14:0,
  15. from ./api.h:6,
  16. from api.c:1:
  17. ./././myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
  18. // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
  19. ^
  20. ./././myerror.h:18:1: warning: (this will be reported only once per input file)
  21. In file included from ././messages.h:15:0,
  22. from ./api.h:6,
  23. from api.c:1:
  24. ./././config.h:12:41: warning: C++ style comments are not allowed in ISO C90
  25. #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
  26. ^
  27. ./././config.h:12:41: warning: (this will be reported only once per input file)
  28. In file included from ./api.h:6:0,
  29. from api.c:1:
  30. ././messages.h:33:1: warning: C++ style comments are not allowed in ISO C90
  31. // Risposta semplice di operazione eseguita con successo
  32. ^
  33. ././messages.h:33:1: warning: (this will be reported only once per input file)
  34. api.c:4:1: warning: C++ style comments are not allowed in ISO C90
  35. // Dichiaro globalmente nella libreria la socket
  36. ^
  37. api.c:4:1: warning: (this will be reported only once per input file)
  38. api.c: In function ‘os_connect’:
  39. api.c:24:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  40. char _msg[BUFFER_SIZE] = {'\0'};
  41. ^
  42. api.c:26:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  43. .buffer = _msg,
  44. ^
  45. api.c:26:9: warning: initializer element is not computable at load time
  46. api.c:27:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  47. .bufferSize = BUFFER_SIZE,
  48. ^
  49. api.c:28:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  50. .dataLen = 0
  51. ^
  52. api.c: In function ‘os_store’:
  53. api.c:46:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  54. .buffer = _msg,
  55. ^
  56. api.c:46:9: warning: initializer element is not computable at load time
  57. api.c:47:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  58. .bufferSize = BUFFER_SIZE,
  59. ^
  60. api.c:48:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  61. .dataLen = 0
  62. ^
  63. api.c: In function ‘os_retrieve’:
  64. api.c:68:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  65. .buffer = _msg,
  66. ^
  67. api.c:68:9: warning: initializer element is not computable at load time
  68. api.c:69:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  69. .bufferSize = BUFFER_SIZE,
  70. ^
  71. api.c:70:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  72. .dataLen = 0
  73. ^
  74. api.c:80:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  75. char _data[BUFFER_SIZE] = {'\0'};
  76. ^
  77. api.c:82:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  78. .buffer = _data,
  79. ^
  80. api.c:82:9: warning: initializer element is not computable at load time
  81. api.c:83:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  82. .bufferSize = BUFFER_SIZE,
  83. ^
  84. api.c:84:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  85. .dataLen = 0
  86. ^
  87. api.c:94:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  88. size_t retrieve_len = left_data_len + data.dataLen;
  89. ^
  90. api.c:103:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  91. char _buffer[BUFFER_SIZE] = {'\0'};
  92. ^
  93. api.c:105:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  94. .buffer = _buffer,
  95. ^
  96. api.c:105:9: warning: initializer element is not computable at load time
  97. api.c:106:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  98. .bufferSize = BUFFER_SIZE,
  99. ^
  100. api.c:107:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  101. .dataLen = 0
  102. ^
  103. api.c: In function ‘os_delete’:
  104. api.c:135:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  105. .buffer = _msg,
  106. ^
  107. api.c:135:9: warning: initializer element is not computable at load time
  108. api.c:136:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  109. .bufferSize = BUFFER_SIZE,
  110. ^
  111. api.c:137:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  112. .dataLen = 0
  113. ^
  114. api.c: In function ‘os_disconnect’:
  115. api.c:154:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  116. char response[BUFFER_RESPONSE_SIZE] = {'\0'};
  117. ^
  118. api.c: In function ‘processResponseHeader’:
  119. api.c:175:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  120. .buffer = _error_message,
  121. ^
  122. api.c:175:9: warning: initializer element is not computable at load time
  123. api.c:176:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  124. .bufferSize = BUFFER_RESPONSE_SIZE,
  125. ^
  126. api.c:177:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  127. .dataLen = 0
  128. ^
  129. api.c:180:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  130. .response_cmd = UNKNOWN_R,
  131. ^
  132. api.c:181:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  133. .data_length = 0,
  134. ^
  135. api.c:182:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  136. .error_message = error_message
  137. ^
  138. api.c:183:5: warning: initializer element is not computable at load time
  139. };
  140. ^
  141. In file included from ./api.h:6:0,
  142. from api.c:1:
  143. ././messages.h:19:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  144. char *message = NULL; \
  145. ^
  146. api.c:225:5: note: in expansion of macro ‘perror_header_parser’
  147. perror_header_parser(error, "");
  148. ^
  149. ar: creazione di libapi.a
  150. In file included from ./api.h:4:0,
  151. from client.c:2:
  152. ././config.h:12:41: warning: C++ style comments are not allowed in ISO C90
  153. #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
  154. ^
  155. ././config.h:12:41: warning: (this will be reported only once per input file)
  156. In file included from ./api.h:5:0,
  157. from client.c:2:
  158. ././myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
  159. // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
  160. ^
  161. ././myerror.h:18:1: warning: (this will be reported only once per input file)
  162. In file included from ././messages.h:14:0,
  163. from ./api.h:6,
  164. from client.c:2:
  165. ./././myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
  166. // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
  167. ^
  168. ./././myerror.h:18:1: warning: (this will be reported only once per input file)
  169. In file included from ././messages.h:15:0,
  170. from ./api.h:6,
  171. from client.c:2:
  172. ./././config.h:12:41: warning: C++ style comments are not allowed in ISO C90
  173. #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
  174. ^
  175. ./././config.h:12:41: warning: (this will be reported only once per input file)
  176. In file included from ./api.h:6:0,
  177. from client.c:2:
  178. ././messages.h:33:1: warning: C++ style comments are not allowed in ISO C90
  179. // Risposta semplice di operazione eseguita con successo
  180. ^
  181. ././messages.h:33:1: warning: (this will be reported only once per input file)
  182. client.c:4:1: warning: C++ style comments are not allowed in ISO C90
  183. // Tipo delle statistiche
  184. ^
  185. client.c:4:1: warning: (this will be reported only once per input file)
  186. client.c:6:7: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
  187. long long start_time; // time in ms
  188. ^
  189. client.c:7:7: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
  190. long long log_time; // time in ms
  191. ^
  192. client.c:19:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  193. .start_time = 0,
  194. ^
  195. client.c:20:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  196. .log_time = 0,
  197. ^
  198. client.c:21:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  199. .name = NULL,
  200. ^
  201. client.c:22:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  202. .test = 0,
  203. ^
  204. client.c:23:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  205. .ok_connection = 0,
  206. ^
  207. client.c:24:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  208. .ok_disconnection = 0,
  209. ^
  210. client.c:25:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  211. .operations = 0,
  212. ^
  213. client.c:26:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  214. .ok_operations = 0,
  215. ^
  216. client.c:27:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  217. .ko_operations = 0
  218. ^
  219. client.c:43:13: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
  220. static long long timeInMilliseconds(void);
  221. ^
  222. client.c: In function ‘test1’:
  223. client.c:68:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
  224. for (int i = 1; i <= OBJ_NUMBER; ++i) {
  225. ^
  226. client.c:68:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
  227. client.c:74:3: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  228. int start_index = (i - 1) * OBJ_CHUNCK_SIZE;
  229. ^
  230. client.c:77:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
  231. for (int j = start_index; j < end_index && j <= MAX_OBJ_DIM - 10; j += 10) {
  232. ^
  233. client.c:81:3: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  234. size_t len = MAX_OBJ_DIM < i * OBJ_CHUNCK_SIZE ? MAX_OBJ_DIM : i * OBJ_CHUNCK_SIZE;
  235. ^
  236. client.c: In function ‘test2’:
  237. client.c:93:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
  238. for (int i = 1; i <= OBJ_NUMBER; ++i) {
  239. ^
  240. client.c:97:3: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  241. int start_index = (i - 1) * OBJ_CHUNCK_SIZE;
  242. ^
  243. client.c:100:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
  244. for (int j = start_index; j < end_index && j <= MAX_OBJ_DIM - 10; j += 10) {
  245. ^
  246. client.c:103:3: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  247. void *retrieveData = os_retrieve(name);
  248. ^
  249. client.c: In function ‘test3’:
  250. client.c:122:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
  251. for (int i = 1; i <= OBJ_NUMBER; ++i) {
  252. ^
  253. client.c:126:3: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  254. int retval = os_delete(name);
  255. ^
  256. client.c: In function ‘main’:
  257. client.c:179:2: warning: ISO C90 does not support the ‘ll’ gnu_printf length modifier [-Wformat=]
  258. );
  259. ^
  260. client.c:179:2: warning: ISO C90 does not support the ‘ll’ gnu_printf length modifier [-Wformat=]
  261. client.c: In function ‘bytesncmp’:
  262. client.c:203:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
  263. for (int i = 0; i < len && equal == 1; i++) {
  264. ^
  265. client.c: At top level:
  266. client.c:214:13: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
  267. static long long timeInMilliseconds() {
  268. ^
  269. client.c: In function ‘timeInMilliseconds’:
  270. client.c:217:21: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
  271. return (( (long long) tv.tv_sec) * 1000) + (tv.tv_usec / 1000);
  272. ^
  273. make[1]: *** [client.o] Errore 1
  274. In file included from liste.c:1:0:
  275. liste.h:15:1: warning: C++ style comments are not allowed in ISO C90
  276. // tipo della funzione utilizzata per fare il compare
  277. ^
  278. liste.h:15:1: warning: (this will be reported only once per input file)
  279. liste.c:3:1: warning: C++ style comments are not allowed in ISO C90
  280. // strdup non e' C99, e' necessario il prototipo
  281. ^
  282. liste.c:3:1: warning: (this will be reported only once per input file)
  283. liste.c: In function ‘createList’:
  284. liste.c:13:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  285. elem_t *p1 = malloc(sizeof(elem_t));
  286. ^
  287. liste.c: In function ‘insertList’:
  288. liste.c:30:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  289. elem_t *p1 = malloc(sizeof(elem_t));
  290. ^
  291. liste.c:33:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  292. int r = 1;
  293. ^
  294. liste.c: In function ‘deleteList’:
  295. liste.c:53:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  296. int r = 0;
  297. ^
  298. liste.c: In function ‘printList’:
  299. liste.c:93:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  300. long count = 0;
  301. ^
  302. liste.c: In function ‘destroyList’:
  303. liste.c:106:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  304. elem_t *p = L->head, *t = NULL;
  305. ^
  306. liste.c: In function ‘isInList’:
  307. liste.c:124:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  308. elem_t *p = L->head;
  309. ^
  310. server.c:1:1: warning: C++ style comments are not allowed in ISO C90
  311. // To avoid intellisense problems with visual studio
  312. ^
  313. server.c:1:1: warning: (this will be reported only once per input file)
  314. In file included from messages.h:14:0,
  315. from serverapi.h:9,
  316. from server.c:4:
  317. ./myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
  318. // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
  319. ^
  320. ./myerror.h:18:1: warning: (this will be reported only once per input file)
  321. In file included from messages.h:15:0,
  322. from serverapi.h:9,
  323. from server.c:4:
  324. ./config.h:12:41: warning: C++ style comments are not allowed in ISO C90
  325. #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
  326. ^
  327. ./config.h:12:41: warning: (this will be reported only once per input file)
  328. In file included from serverapi.h:9:0,
  329. from server.c:4:
  330. messages.h:33:1: warning: C++ style comments are not allowed in ISO C90
  331. // Risposta semplice di operazione eseguita con successo
  332. ^
  333. messages.h:33:1: warning: (this will be reported only once per input file)
  334. In file included from serverapi.h:10:0,
  335. from server.c:4:
  336. config.h:12:41: warning: C++ style comments are not allowed in ISO C90
  337. #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
  338. ^
  339. config.h:12:41: warning: (this will be reported only once per input file)
  340. In file included from serverapi.h:11:0,
  341. from server.c:4:
  342. myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
  343. // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
  344. ^
  345. myerror.h:18:1: warning: (this will be reported only once per input file)
  346. In file included from serverapi.h:12:0,
  347. from server.c:4:
  348. liste.h:15:1: warning: C++ style comments are not allowed in ISO C90
  349. // tipo della funzione utilizzata per fare il compare
  350. ^
  351. liste.h:15:1: warning: (this will be reported only once per input file)
  352. In file included from server.c:4:0:
  353. serverapi.h:26:37: warning: C++ style comments are not allowed in ISO C90
  354. unsigned long nusers; // n. utenti totali dello store
  355. ^
  356. serverapi.h:26:37: warning: (this will be reported only once per input file)
  357. server.c: In function ‘main’:
  358. server.c:36:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  359. sigset_t sigmask;
  360. ^
  361. server.c:43:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  362. pthread_t sigthread;
  363. ^
  364. server.c:52:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  365. struct sockaddr_un sa;
  366. ^
  367. server.c:56:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  368. int sfd = -1;
  369. ^
  370. server.c:67:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  371. struct timeval timeout;
  372. ^
  373. server.c: In function ‘workerFunction’:
  374. server.c:165:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  375. int own_breaker = 0;
  376. ^
  377. server.c:198:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  378. .buffer = _buffer,
  379. ^
  380. server.c:198:17: warning: initializer element is not computable at load time
  381. server.c:199:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  382. .bufferSize = BUFFER_SIZE,
  383. ^
  384. server.c:200:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  385. .dataLen = 0
  386. ^
  387. server.c:205:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  388. .buffer = _name,
  389. ^
  390. server.c:205:17: warning: initializer element is not computable at load time
  391. server.c:206:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  392. .bufferSize = BUFFER_NAME_SIZE,
  393. ^
  394. server.c:207:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  395. .dataLen = 0
  396. ^
  397. server.c:211:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  398. .cmd = UNKOWN,
  399. ^
  400. server.c:212:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  401. .nameParam = &nameBuffer,
  402. ^
  403. server.c:212:17: warning: initializer element is not computable at load time
  404. server.c:213:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  405. .dataLength = 0
  406. ^
  407. In file included from messages.h:14:0,
  408. from messages.c:1:
  409. ./myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
  410. // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
  411. ^
  412. ./myerror.h:18:1: warning: (this will be reported only once per input file)
  413. In file included from messages.h:15:0,
  414. from messages.c:1:
  415. ./config.h:12:41: warning: C++ style comments are not allowed in ISO C90
  416. #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
  417. ^
  418. ./config.h:12:41: warning: (this will be reported only once per input file)
  419. In file included from messages.c:1:0:
  420. messages.h:33:1: warning: C++ style comments are not allowed in ISO C90
  421. // Risposta semplice di operazione eseguita con successo
  422. ^
  423. messages.h:33:1: warning: (this will be reported only once per input file)
  424. messages.c:8:1: warning: C++ style comments are not allowed in ISO C90
  425. // =================
  426. ^
  427. messages.c:8:1: warning: (this will be reported only once per input file)
  428. messages.c: In function ‘parseRequestHeader’:
  429. messages.c:41:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  430. int hasnewline = strchr(buff, '\n') != NULL;
  431. ^
  432. messages.c:52:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  433. char *tmpstr = NULL;
  434. ^
  435. messages.c:78:13: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  436. size_t namelen = strlen(tmpname);
  437. ^
  438. messages.c:115:9: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  439. size_t datasize = strlen(tmpdata);
  440. ^
  441. messages.c: In function ‘getResponseHeader’:
  442. messages.c:143:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  443. int retval = 0;
  444. ^
  445. messages.c:150:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  446. int hasnewline = strchr(rawresponse, '\n') != NULL;
  447. ^
  448. In file included from messages.h:14:0,
  449. from serverapi.h:9,
  450. from serverapi.c:1:
  451. ./myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
  452. // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
  453. ^
  454. ./myerror.h:18:1: warning: (this will be reported only once per input file)
  455. In file included from messages.h:15:0,
  456. from serverapi.h:9,
  457. from serverapi.c:1:
  458. ./config.h:12:41: warning: C++ style comments are not allowed in ISO C90
  459. #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
  460. ^
  461. ./config.h:12:41: warning: (this will be reported only once per input file)
  462. In file included from serverapi.h:9:0,
  463. from serverapi.c:1:
  464. messages.h:33:1: warning: C++ style comments are not allowed in ISO C90
  465. // Risposta semplice di operazione eseguita con successo
  466. ^
  467. messages.h:33:1: warning: (this will be reported only once per input file)
  468. In file included from serverapi.h:10:0,
  469. from serverapi.c:1:
  470. config.h:12:41: warning: C++ style comments are not allowed in ISO C90
  471. #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
  472. ^
  473. config.h:12:41: warning: (this will be reported only once per input file)
  474. In file included from serverapi.h:11:0,
  475. from serverapi.c:1:
  476. myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
  477. // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
  478. ^
  479. myerror.h:18:1: warning: (this will be reported only once per input file)
  480. In file included from serverapi.h:12:0,
  481. from serverapi.c:1:
  482. liste.h:15:1: warning: C++ style comments are not allowed in ISO C90
  483. // tipo della funzione utilizzata per fare il compare
  484. ^
  485. liste.h:15:1: warning: (this will be reported only once per input file)
  486. In file included from serverapi.c:1:0:
  487. serverapi.h:26:37: warning: C++ style comments are not allowed in ISO C90
  488. unsigned long nusers; // n. utenti totali dello store
  489. ^
  490. serverapi.h:26:37: warning: (this will be reported only once per input file)
  491. serverapi.c:9:1: warning: C++ style comments are not allowed in ISO C90
  492. // Mutex globale con contatore dei clients attivi
  493. ^
  494. serverapi.c:9:1: warning: (this will be reported only once per input file)
  495. serverapi.c: In function ‘registerFun’:
  496. serverapi.c:58:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  497. int tmperror = 0;
  498. ^
  499. serverapi.c:66:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  500. char *username = header->nameParam->buffer;
  501. ^
  502. serverapi.c: In function ‘storeFun’:
  503. serverapi.c:117:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  504. int fd = 0;
  505. ^
  506. serverapi.c:124:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  507. size_t original_data_size = header->dataLength;
  508. ^
  509. serverapi.c: In function ‘retrieveFun’:
  510. serverapi.c:185:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  511. int fd = 0;
  512. ^
  513. serverapi.c:191:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  514. struct stat s;
  515. ^
  516. serverapi.c:193:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  517. long int file_len = s.st_size;
  518. ^
  519. serverapi.c:200:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  520. .buffer = _response_buffer,
  521. ^
  522. serverapi.c:200:9: warning: initializer element is not computable at load time
  523. serverapi.c:201:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  524. .bufferSize = BUFFER_SIZE,
  525. ^
  526. serverapi.c:202:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  527. .dataLen = 0
  528. ^
  529. serverapi.c:236:9: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  530. int written = writen(socket_fd, response_buffer.buffer, response_buffer.dataLen);
  531. ^
  532. serverapi.c: In function ‘deleteFun’:
  533. serverapi.c:265:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  534. char buff[BUFFER_PATH_SIZE] = {'\0'};
  535. ^
  536. serverapi.c:267:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  537. .buffer = buff,
  538. ^
  539. serverapi.c:267:9: warning: initializer element is not computable at load time
  540. serverapi.c:268:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  541. .dataLen = 0,
  542. ^
  543. serverapi.c:269:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
  544. .bufferSize = BUFFER_PATH_SIZE
  545. ^
  546. serverapi.c:273:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  547. DIR * d = opendir(filepath.buffer);
  548. ^
  549. serverapi.c:279:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  550. struct dirent * dir;
  551. ^
  552. serverapi.c:290:17: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  553. int res = removeFile(filepath.buffer);
  554. ^
  555. serverapi.c: In function ‘initializeStatistics’:
  556. serverapi.c:329:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  557. int tmperror = 0;
  558. ^
  559. serverapi.c: In function ‘getDirCounters’:
  560. serverapi.c:430:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  561. struct dirent * dir;
  562. ^
  563. serverapi.c:437:9: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  564. struct stat s;
  565. ^
  566. serverapi.c:460:13: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  567. DIR * d_client;
  568. ^
  569. serverapi.c:462:13: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  570. struct dirent * dir_client;
  571. ^
  572. serverapi.c:465:17: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  573. char buffer[BUFFER_PATH_SIZE] = {'\0'};
  574. ^
  575. serverapi.c:471:17: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
  576. struct stat s;
  577. ^
  578. xubuntu@xubuntu-VirtualBox:~/Scrivania/objectStore2019$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement