/in/hotel-main.c: In function 'main':
/in/hotel-main.c:17:5: error: unused variable 'f' [-Werror=unused-variable]
int f=1;
^
/in/hotel-main.c:14:25: error: unused variable 'end' [-Werror=unused-variable]
extern struct Room *end;
^~~
/in/hotel-main.c:13:25: error: unused variable 'head' [-Werror=unused-variable]
extern struct Room *head;
^~~~
cc1: all warnings being treated as errors
/in/hotel-mt.c: In function 'createdormCard':
/in/hotel-mt.c:10:9: error: unused variable 'i' [-Werror=unused-variable]
int i;
^
/in/hotel-mt.c: In function 'Adddormvisitors':
/in/hotel-mt.c:32:9: error: unused variable 'i' [-Werror=unused-variable]
int i;
^
/in/hotel-mt.c: In function 'leave':
/in/hotel-mt.c:90:9: error: unused variable 'i' [-Werror=unused-variable]
int i;
^
/in/hotel-mt.c: In function 'getmessage':
/in/hotel-mt.c:137:12: error: function returns address of local variable [-Werror=return-local-addr]
return a;
^
/in/hotel-mt.c: In function 'Adddormvisitors':
/in/hotel-mt.c:50:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: all warnings being treated as errors
/in/hotel-db.c: In function 'getFromTemp':
/in/hotel-db.c:57:11: error: unused variable 'price' [-Werror=unused-variable]
char *price="price";
^~~~~
/in/hotel-db.c:56:11: error: unused variable 'night' [-Werror=unused-variable]
char *night="night";
^~~~~
/in/hotel-db.c:55:11: error: unused variable 'breakfast' [-Werror=unused-variable]
char *breakfast="breakfast";
^~~~~~~~~
/in/hotel-db.c:54:11: error: unused variable 'keys' [-Werror=unused-variable]
char *keys="keys";
^~~~
/in/hotel-db.c:53:11: error: unused variable 'arrival' [-Werror=unused-variable]
char *arrival="arrival";
^~~~~~~
/in/hotel-db.c:52:11: error: unused variable 'id' [-Werror=unused-variable]
char *id="id";
^~
/in/hotel-db.c:51:11: error: unused variable 'name' [-Werror=unused-variable]
char *name="name";//
^~~~
/in/hotel-db.c:50:11: error: unused variable 'visitors' [-Werror=unused-variable]
char *visitors="visitors";
^~~~~~~~
/in/hotel-db.c:49:11: error: unused variable 'vacant' [-Werror=unused-variable]
char *vacant="vacant";//vacant
^~~~~~
/in/hotel-db.c:48:11: error: unused variable 'type' [-Werror=unused-variable]
char *type="type";//hotel type
^~~~
/in/hotel-db.c: In function 'getRoomId':
/in/hotel-db.c:64:11: error: unused variable 'p2' [-Werror=unused-variable]
char *p2=strstr(temp,"]");
^~
/in/hotel-db.c:63:11: error: unused variable 'p' [-Werror=unused-variable]
char *p=strstr(temp,dest);
^
/in/hotel-db.c: In function 'isStart':
/in/hotel-db.c:75:8: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
if((int)strstr(strncpy(t,temp,1),"#")!=0)
^
/in/hotel-db.c: In function 'readFromDb':
/in/hotel-db.c:103:9: error: unused variable 'flag' [-Werror=unused-variable]
int flag=0;
^~~~
/in/hotel-db.c: In function 'writeToDb':
/in/hotel-db.c:156:5: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
for ( p= Head; p != End; p = p->Next);
^~~
/in/hotel-db.c:157:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
{
^
/in/hotel-db.c: In function 'getFromTemp':
/in/hotel-db.c:59:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
/in/hotel-db.c: In function 'getRoomId':
/in/hotel-db.c:66:12: error: 'result' is used uninitialized in this function [-Werror=uninitialized]
return result;
^~~~~~
/in/hotel-db.c: In function 'isStart':
/in/hotel-db.c:75:20: error: 't' is used uninitialized in this function [-Werror=uninitialized]
if((int)strstr(strncpy(t,temp,1),"#")!=0)
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors