Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- xubuntu@xubuntu-VirtualBox:~/Scrivania/objectStore2019$ make
- In file included from ./api.h:4:0,
- from api.c:1:
- ././config.h:12:41: warning: C++ style comments are not allowed in ISO C90
- #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
- ^
- ././config.h:12:41: warning: (this will be reported only once per input file)
- In file included from ./api.h:5:0,
- from api.c:1:
- ././myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
- // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
- ^
- ././myerror.h:18:1: warning: (this will be reported only once per input file)
- In file included from ././messages.h:14:0,
- from ./api.h:6,
- from api.c:1:
- ./././myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
- // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
- ^
- ./././myerror.h:18:1: warning: (this will be reported only once per input file)
- In file included from ././messages.h:15:0,
- from ./api.h:6,
- from api.c:1:
- ./././config.h:12:41: warning: C++ style comments are not allowed in ISO C90
- #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
- ^
- ./././config.h:12:41: warning: (this will be reported only once per input file)
- In file included from ./api.h:6:0,
- from api.c:1:
- ././messages.h:33:1: warning: C++ style comments are not allowed in ISO C90
- // Risposta semplice di operazione eseguita con successo
- ^
- ././messages.h:33:1: warning: (this will be reported only once per input file)
- api.c:4:1: warning: C++ style comments are not allowed in ISO C90
- // Dichiaro globalmente nella libreria la socket
- ^
- api.c:4:1: warning: (this will be reported only once per input file)
- api.c: In function ‘os_connect’:
- api.c:24:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- char _msg[BUFFER_SIZE] = {'\0'};
- ^
- api.c:26:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .buffer = _msg,
- ^
- api.c:26:9: warning: initializer element is not computable at load time
- api.c:27:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .bufferSize = BUFFER_SIZE,
- ^
- api.c:28:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .dataLen = 0
- ^
- api.c: In function ‘os_store’:
- api.c:46:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .buffer = _msg,
- ^
- api.c:46:9: warning: initializer element is not computable at load time
- api.c:47:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .bufferSize = BUFFER_SIZE,
- ^
- api.c:48:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .dataLen = 0
- ^
- api.c: In function ‘os_retrieve’:
- api.c:68:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .buffer = _msg,
- ^
- api.c:68:9: warning: initializer element is not computable at load time
- api.c:69:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .bufferSize = BUFFER_SIZE,
- ^
- api.c:70:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .dataLen = 0
- ^
- api.c:80:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- char _data[BUFFER_SIZE] = {'\0'};
- ^
- api.c:82:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .buffer = _data,
- ^
- api.c:82:9: warning: initializer element is not computable at load time
- api.c:83:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .bufferSize = BUFFER_SIZE,
- ^
- api.c:84:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .dataLen = 0
- ^
- api.c:94:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- size_t retrieve_len = left_data_len + data.dataLen;
- ^
- api.c:103:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- char _buffer[BUFFER_SIZE] = {'\0'};
- ^
- api.c:105:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .buffer = _buffer,
- ^
- api.c:105:9: warning: initializer element is not computable at load time
- api.c:106:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .bufferSize = BUFFER_SIZE,
- ^
- api.c:107:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .dataLen = 0
- ^
- api.c: In function ‘os_delete’:
- api.c:135:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .buffer = _msg,
- ^
- api.c:135:9: warning: initializer element is not computable at load time
- api.c:136:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .bufferSize = BUFFER_SIZE,
- ^
- api.c:137:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .dataLen = 0
- ^
- api.c: In function ‘os_disconnect’:
- api.c:154:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- char response[BUFFER_RESPONSE_SIZE] = {'\0'};
- ^
- api.c: In function ‘processResponseHeader’:
- api.c:175:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .buffer = _error_message,
- ^
- api.c:175:9: warning: initializer element is not computable at load time
- api.c:176:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .bufferSize = BUFFER_RESPONSE_SIZE,
- ^
- api.c:177:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .dataLen = 0
- ^
- api.c:180:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .response_cmd = UNKNOWN_R,
- ^
- api.c:181:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .data_length = 0,
- ^
- api.c:182:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .error_message = error_message
- ^
- api.c:183:5: warning: initializer element is not computable at load time
- };
- ^
- In file included from ./api.h:6:0,
- from api.c:1:
- ././messages.h:19:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- char *message = NULL; \
- ^
- api.c:225:5: note: in expansion of macro ‘perror_header_parser’
- perror_header_parser(error, "");
- ^
- ar: creazione di libapi.a
- In file included from ./api.h:4:0,
- from client.c:2:
- ././config.h:12:41: warning: C++ style comments are not allowed in ISO C90
- #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
- ^
- ././config.h:12:41: warning: (this will be reported only once per input file)
- In file included from ./api.h:5:0,
- from client.c:2:
- ././myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
- // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
- ^
- ././myerror.h:18:1: warning: (this will be reported only once per input file)
- In file included from ././messages.h:14:0,
- from ./api.h:6,
- from client.c:2:
- ./././myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
- // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
- ^
- ./././myerror.h:18:1: warning: (this will be reported only once per input file)
- In file included from ././messages.h:15:0,
- from ./api.h:6,
- from client.c:2:
- ./././config.h:12:41: warning: C++ style comments are not allowed in ISO C90
- #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
- ^
- ./././config.h:12:41: warning: (this will be reported only once per input file)
- In file included from ./api.h:6:0,
- from client.c:2:
- ././messages.h:33:1: warning: C++ style comments are not allowed in ISO C90
- // Risposta semplice di operazione eseguita con successo
- ^
- ././messages.h:33:1: warning: (this will be reported only once per input file)
- client.c:4:1: warning: C++ style comments are not allowed in ISO C90
- // Tipo delle statistiche
- ^
- client.c:4:1: warning: (this will be reported only once per input file)
- client.c:6:7: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
- long long start_time; // time in ms
- ^
- client.c:7:7: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
- long long log_time; // time in ms
- ^
- client.c:19:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .start_time = 0,
- ^
- client.c:20:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .log_time = 0,
- ^
- client.c:21:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .name = NULL,
- ^
- client.c:22:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .test = 0,
- ^
- client.c:23:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .ok_connection = 0,
- ^
- client.c:24:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .ok_disconnection = 0,
- ^
- client.c:25:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .operations = 0,
- ^
- client.c:26:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .ok_operations = 0,
- ^
- client.c:27:2: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .ko_operations = 0
- ^
- client.c:43:13: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
- static long long timeInMilliseconds(void);
- ^
- client.c: In function ‘test1’:
- client.c:68:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
- for (int i = 1; i <= OBJ_NUMBER; ++i) {
- ^
- client.c:68:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
- client.c:74:3: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int start_index = (i - 1) * OBJ_CHUNCK_SIZE;
- ^
- client.c:77:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
- for (int j = start_index; j < end_index && j <= MAX_OBJ_DIM - 10; j += 10) {
- ^
- client.c:81:3: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- size_t len = MAX_OBJ_DIM < i * OBJ_CHUNCK_SIZE ? MAX_OBJ_DIM : i * OBJ_CHUNCK_SIZE;
- ^
- client.c: In function ‘test2’:
- client.c:93:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
- for (int i = 1; i <= OBJ_NUMBER; ++i) {
- ^
- client.c:97:3: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int start_index = (i - 1) * OBJ_CHUNCK_SIZE;
- ^
- client.c:100:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
- for (int j = start_index; j < end_index && j <= MAX_OBJ_DIM - 10; j += 10) {
- ^
- client.c:103:3: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- void *retrieveData = os_retrieve(name);
- ^
- client.c: In function ‘test3’:
- client.c:122:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
- for (int i = 1; i <= OBJ_NUMBER; ++i) {
- ^
- client.c:126:3: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int retval = os_delete(name);
- ^
- client.c: In function ‘main’:
- client.c:179:2: warning: ISO C90 does not support the ‘ll’ gnu_printf length modifier [-Wformat=]
- );
- ^
- client.c:179:2: warning: ISO C90 does not support the ‘ll’ gnu_printf length modifier [-Wformat=]
- client.c: In function ‘bytesncmp’:
- client.c:203:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
- for (int i = 0; i < len && equal == 1; i++) {
- ^
- client.c: At top level:
- client.c:214:13: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
- static long long timeInMilliseconds() {
- ^
- client.c: In function ‘timeInMilliseconds’:
- client.c:217:21: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
- return (( (long long) tv.tv_sec) * 1000) + (tv.tv_usec / 1000);
- ^
- make[1]: *** [client.o] Errore 1
- In file included from liste.c:1:0:
- liste.h:15:1: warning: C++ style comments are not allowed in ISO C90
- // tipo della funzione utilizzata per fare il compare
- ^
- liste.h:15:1: warning: (this will be reported only once per input file)
- liste.c:3:1: warning: C++ style comments are not allowed in ISO C90
- // strdup non e' C99, e' necessario il prototipo
- ^
- liste.c:3:1: warning: (this will be reported only once per input file)
- liste.c: In function ‘createList’:
- liste.c:13:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- elem_t *p1 = malloc(sizeof(elem_t));
- ^
- liste.c: In function ‘insertList’:
- liste.c:30:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- elem_t *p1 = malloc(sizeof(elem_t));
- ^
- liste.c:33:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int r = 1;
- ^
- liste.c: In function ‘deleteList’:
- liste.c:53:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int r = 0;
- ^
- liste.c: In function ‘printList’:
- liste.c:93:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- long count = 0;
- ^
- liste.c: In function ‘destroyList’:
- liste.c:106:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- elem_t *p = L->head, *t = NULL;
- ^
- liste.c: In function ‘isInList’:
- liste.c:124:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- elem_t *p = L->head;
- ^
- server.c:1:1: warning: C++ style comments are not allowed in ISO C90
- // To avoid intellisense problems with visual studio
- ^
- server.c:1:1: warning: (this will be reported only once per input file)
- In file included from messages.h:14:0,
- from serverapi.h:9,
- from server.c:4:
- ./myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
- // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
- ^
- ./myerror.h:18:1: warning: (this will be reported only once per input file)
- In file included from messages.h:15:0,
- from serverapi.h:9,
- from server.c:4:
- ./config.h:12:41: warning: C++ style comments are not allowed in ISO C90
- #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
- ^
- ./config.h:12:41: warning: (this will be reported only once per input file)
- In file included from serverapi.h:9:0,
- from server.c:4:
- messages.h:33:1: warning: C++ style comments are not allowed in ISO C90
- // Risposta semplice di operazione eseguita con successo
- ^
- messages.h:33:1: warning: (this will be reported only once per input file)
- In file included from serverapi.h:10:0,
- from server.c:4:
- config.h:12:41: warning: C++ style comments are not allowed in ISO C90
- #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
- ^
- config.h:12:41: warning: (this will be reported only once per input file)
- In file included from serverapi.h:11:0,
- from server.c:4:
- myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
- // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
- ^
- myerror.h:18:1: warning: (this will be reported only once per input file)
- In file included from serverapi.h:12:0,
- from server.c:4:
- liste.h:15:1: warning: C++ style comments are not allowed in ISO C90
- // tipo della funzione utilizzata per fare il compare
- ^
- liste.h:15:1: warning: (this will be reported only once per input file)
- In file included from server.c:4:0:
- serverapi.h:26:37: warning: C++ style comments are not allowed in ISO C90
- unsigned long nusers; // n. utenti totali dello store
- ^
- serverapi.h:26:37: warning: (this will be reported only once per input file)
- server.c: In function ‘main’:
- server.c:36:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- sigset_t sigmask;
- ^
- server.c:43:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- pthread_t sigthread;
- ^
- server.c:52:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- struct sockaddr_un sa;
- ^
- server.c:56:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int sfd = -1;
- ^
- server.c:67:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- struct timeval timeout;
- ^
- server.c: In function ‘workerFunction’:
- server.c:165:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int own_breaker = 0;
- ^
- server.c:198:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .buffer = _buffer,
- ^
- server.c:198:17: warning: initializer element is not computable at load time
- server.c:199:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .bufferSize = BUFFER_SIZE,
- ^
- server.c:200:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .dataLen = 0
- ^
- server.c:205:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .buffer = _name,
- ^
- server.c:205:17: warning: initializer element is not computable at load time
- server.c:206:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .bufferSize = BUFFER_NAME_SIZE,
- ^
- server.c:207:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .dataLen = 0
- ^
- server.c:211:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .cmd = UNKOWN,
- ^
- server.c:212:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .nameParam = &nameBuffer,
- ^
- server.c:212:17: warning: initializer element is not computable at load time
- server.c:213:17: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .dataLength = 0
- ^
- In file included from messages.h:14:0,
- from messages.c:1:
- ./myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
- // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
- ^
- ./myerror.h:18:1: warning: (this will be reported only once per input file)
- In file included from messages.h:15:0,
- from messages.c:1:
- ./config.h:12:41: warning: C++ style comments are not allowed in ISO C90
- #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
- ^
- ./config.h:12:41: warning: (this will be reported only once per input file)
- In file included from messages.c:1:0:
- messages.h:33:1: warning: C++ style comments are not allowed in ISO C90
- // Risposta semplice di operazione eseguita con successo
- ^
- messages.h:33:1: warning: (this will be reported only once per input file)
- messages.c:8:1: warning: C++ style comments are not allowed in ISO C90
- // =================
- ^
- messages.c:8:1: warning: (this will be reported only once per input file)
- messages.c: In function ‘parseRequestHeader’:
- messages.c:41:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int hasnewline = strchr(buff, '\n') != NULL;
- ^
- messages.c:52:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- char *tmpstr = NULL;
- ^
- messages.c:78:13: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- size_t namelen = strlen(tmpname);
- ^
- messages.c:115:9: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- size_t datasize = strlen(tmpdata);
- ^
- messages.c: In function ‘getResponseHeader’:
- messages.c:143:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int retval = 0;
- ^
- messages.c:150:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int hasnewline = strchr(rawresponse, '\n') != NULL;
- ^
- In file included from messages.h:14:0,
- from serverapi.h:9,
- from serverapi.c:1:
- ./myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
- // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
- ^
- ./myerror.h:18:1: warning: (this will be reported only once per input file)
- In file included from messages.h:15:0,
- from serverapi.h:9,
- from serverapi.c:1:
- ./config.h:12:41: warning: C++ style comments are not allowed in ISO C90
- #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
- ^
- ./config.h:12:41: warning: (this will be reported only once per input file)
- In file included from serverapi.h:9:0,
- from serverapi.c:1:
- messages.h:33:1: warning: C++ style comments are not allowed in ISO C90
- // Risposta semplice di operazione eseguita con successo
- ^
- messages.h:33:1: warning: (this will be reported only once per input file)
- In file included from serverapi.h:10:0,
- from serverapi.c:1:
- config.h:12:41: warning: C++ style comments are not allowed in ISO C90
- #define CHECK_TIMEUOT 10000 // Timeout in microseconds, usato per le select in modo da controllare se è arrivato un segnale
- ^
- config.h:12:41: warning: (this will be reported only once per input file)
- In file included from serverapi.h:11:0,
- from serverapi.c:1:
- myerror.h:18:1: warning: C++ style comments are not allowed in ISO C90
- // Se X == val stampa un messaggio di errore (str e indicazione di linea e file) e stoppa
- ^
- myerror.h:18:1: warning: (this will be reported only once per input file)
- In file included from serverapi.h:12:0,
- from serverapi.c:1:
- liste.h:15:1: warning: C++ style comments are not allowed in ISO C90
- // tipo della funzione utilizzata per fare il compare
- ^
- liste.h:15:1: warning: (this will be reported only once per input file)
- In file included from serverapi.c:1:0:
- serverapi.h:26:37: warning: C++ style comments are not allowed in ISO C90
- unsigned long nusers; // n. utenti totali dello store
- ^
- serverapi.h:26:37: warning: (this will be reported only once per input file)
- serverapi.c:9:1: warning: C++ style comments are not allowed in ISO C90
- // Mutex globale con contatore dei clients attivi
- ^
- serverapi.c:9:1: warning: (this will be reported only once per input file)
- serverapi.c: In function ‘registerFun’:
- serverapi.c:58:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int tmperror = 0;
- ^
- serverapi.c:66:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- char *username = header->nameParam->buffer;
- ^
- serverapi.c: In function ‘storeFun’:
- serverapi.c:117:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int fd = 0;
- ^
- serverapi.c:124:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- size_t original_data_size = header->dataLength;
- ^
- serverapi.c: In function ‘retrieveFun’:
- serverapi.c:185:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int fd = 0;
- ^
- serverapi.c:191:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- struct stat s;
- ^
- serverapi.c:193:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- long int file_len = s.st_size;
- ^
- serverapi.c:200:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .buffer = _response_buffer,
- ^
- serverapi.c:200:9: warning: initializer element is not computable at load time
- serverapi.c:201:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .bufferSize = BUFFER_SIZE,
- ^
- serverapi.c:202:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .dataLen = 0
- ^
- serverapi.c:236:9: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int written = writen(socket_fd, response_buffer.buffer, response_buffer.dataLen);
- ^
- serverapi.c: In function ‘deleteFun’:
- serverapi.c:265:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- char buff[BUFFER_PATH_SIZE] = {'\0'};
- ^
- serverapi.c:267:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .buffer = buff,
- ^
- serverapi.c:267:9: warning: initializer element is not computable at load time
- serverapi.c:268:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .dataLen = 0,
- ^
- serverapi.c:269:9: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic]
- .bufferSize = BUFFER_PATH_SIZE
- ^
- serverapi.c:273:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- DIR * d = opendir(filepath.buffer);
- ^
- serverapi.c:279:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- struct dirent * dir;
- ^
- serverapi.c:290:17: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int res = removeFile(filepath.buffer);
- ^
- serverapi.c: In function ‘initializeStatistics’:
- serverapi.c:329:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- int tmperror = 0;
- ^
- serverapi.c: In function ‘getDirCounters’:
- serverapi.c:430:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- struct dirent * dir;
- ^
- serverapi.c:437:9: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- struct stat s;
- ^
- serverapi.c:460:13: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- DIR * d_client;
- ^
- serverapi.c:462:13: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- struct dirent * dir_client;
- ^
- serverapi.c:465:17: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- char buffer[BUFFER_PATH_SIZE] = {'\0'};
- ^
- serverapi.c:471:17: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
- struct stat s;
- ^
- xubuntu@xubuntu-VirtualBox:~/Scrivania/objectStore2019$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement