dear all, GCC-4.6 says this warning syscall.c:1011:15: warning: variable ‘fullpath_length’ set but not used [-Wunused-but-set-variable] However in the code, I see int length, fullpath_length; // warning at this line int host_fd; struct fd_t *fd; /* Read parameters */ pfilename = isa_regs->ebx; flags = isa_regs->ecx; mode = isa_regs->edx; length = mem_read_string(isa_mem, pfilename, MAX_PATH_SIZE, filename); if (length >= MAX_PATH_SIZE) fatal("syscall open: maximum path length exceeded"); ld_get_full_path(isa_ctx, filename, fullpath, MAX_PATH_SIZE); fullpath_length = strlen(fullpath); // variable is used here As you can see fullpath_length is defined as 'int' and is used at the end of the code. Any way to fix that? // Naderan *Mahmood;