=> Bootstrap dependency digest>=20010302: found digest-20160304 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for xipdump-1.5.4nb5 --- mg_alloc.o --- --- mg_arr.o --- --- mg_arr_char.o --- --- mg_assoc.o --- --- mg_bit.o --- --- mg_buf.o --- --- mg_dict.o --- --- mg_dict_int.o --- --- mg_dict_str.o --- --- mg_dm.o --- --- mg_dyn_str.o --- --- mg_err.o --- --- mg_hash.o --- --- mg_id.o --- --- mg_id_ptr.o --- --- mg_id_str.o --- --- mg_alloc.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_alloc.c --- mg_dm.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_dm.c --- mg_dict.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_dict.c --- mg_arr.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_arr.c --- mg_dyn_str.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_dyn_str.c --- mg_buf.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_buf.c --- mg_dict_str.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_dict_str.c --- mg_arr_char.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_arr_char.c --- mg_err.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_err.c --- mg_dict_int.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_dict_int.c --- mg_bit.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_bit.c --- mg_hash.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_hash.c --- mg_id.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_id.c --- mg_id_ptr.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_id_ptr.c --- mg_assoc.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_assoc.c --- mg_id_str.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_id_str.c --- mg_arr.o --- mg_arr.c:163:33: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] fprintf(stderr,"eltsize=%d\n",arr->eltsize); ~~ ^~~~~~~~~~~~ %zu --- mg_id.o --- mg_id.c:176:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(id,key)) ~~~^~~~~~~~~~~~~~~~ mg_id.c:176:10: note: place parentheses around the assignment to silence this warning if (he = id_get(id,key)) ^ ( ) mg_id.c:176:10: note: use '==' to turn this assignment into an equality comparison if (he = id_get(id,key)) ^ == mg_id.c:356:30: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat] fprintf(stderr,"0x%x=0x%x",he->key,he->value); ~~ ^~~~~~~ mg_id.c:356:38: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat] fprintf(stderr,"0x%x=0x%x",he->key,he->value); ~~ ^~~~~~~~~ mg_id.c:393:20: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] while (id_get(id,(VOID_PTR)base_key)) ^ mg_id.c:401:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (VOID_PTR)base_key, ^ mg_id.c:414:28: warning: format specifies type 'int' but the argument has type 'void *' [-Wformat] fprintf(stderr,"%d=%x\n",he->key,he->value); ~~ ^~~~~~~ mg_id.c:414:36: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat] fprintf(stderr,"%d=%x\n",he->key,he->value); ~~ ^~~~~~~~~ --- mg_int.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_int.c --- mg_id_str.o --- mg_id_str.c:18:28: warning: format specifies type 'int' but the argument has type 'void *' [-Wformat] fprintf(stderr,"%d=%s\n",he->key,he->value); ~~ ^~~~~~~ --- mg_dict.o --- mg_dict.c:26:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (carry = (hash_code & 0xf0000000)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ mg_dict.c:26:17: note: place parentheses around the assignment to silence this warning if (carry = (hash_code & 0xf0000000)) ^ ( ) mg_dict.c:26:17: note: use '==' to turn this assignment into an equality comparison if (carry = (hash_code & 0xf0000000)) ^ == --- mg_mask.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_mask.c --- mg_dict.o --- mg_dict.c:183:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = dict_get(dict,key)) ~~~^~~~~~~~~~~~~~~~~~~~ mg_dict.c:183:10: note: place parentheses around the assignment to silence this warning if (he = dict_get(dict,key)) ^ ( ) mg_dict.c:183:10: note: use '==' to turn this assignment into an equality comparison if (he = dict_get(dict,key)) ^ == mg_dict.c:214:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = dict_get(dict,key)) ~~~^~~~~~~~~~~~~~~~~~~~ mg_dict.c:214:10: note: place parentheses around the assignment to silence this warning if (he = dict_get(dict,key)) ^ ( ) mg_dict.c:214:10: note: use '==' to turn this assignment into an equality comparison if (he = dict_get(dict,key)) ^ == mg_dict.c:484:50: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat] fprintf(stderr,"key=`%s' value=0x%x\n",he->key,he->value); ~~ ^~~~~~~~~ --- mg_arr.o --- 1 warning generated. --- mg_misc.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_misc.c --- mg_dict_str.o --- mg_dict_str.c:31:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = dict_get(dict,key)) ~~~^~~~~~~~~~~~~~~~~~~~ mg_dict_str.c:31:10: note: place parentheses around the assignment to silence this warning if (he = dict_get(dict,key)) ^ ( ) mg_dict_str.c:31:10: note: use '==' to turn this assignment into an equality comparison if (he = dict_get(dict,key)) ^ == --- mg_dm.o --- mg_dm.c:43:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(dm->id,ptr)) ~~~^~~~~~~~~~~~~~~~~~~~ mg_dm.c:43:10: note: place parentheses around the assignment to silence this warning if (he = id_get(dm->id,ptr)) ^ ( ) mg_dm.c:43:10: note: use '==' to turn this assignment into an equality comparison if (he = id_get(dm->id,ptr)) ^ == --- mg_id_str.o --- 1 warning generated. --- mg_dict_str.o --- mg_dict_str.c:71:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = dict_get(dict,key)) ~~~^~~~~~~~~~~~~~~~~~~~ mg_dict_str.c:71:10: note: place parentheses around the assignment to silence this warning if (he = dict_get(dict,key)) ^ ( ) mg_dict_str.c:71:10: note: use '==' to turn this assignment into an equality comparison if (he = dict_get(dict,key)) ^ == mg_dict_str.c:102:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = dict_get(dict,key)) ~~~^~~~~~~~~~~~~~~~~~~~ mg_dict_str.c:102:10: note: place parentheses around the assignment to silence this warning if (he = dict_get(dict,key)) ^ ( ) mg_dict_str.c:102:10: note: use '==' to turn this assignment into an equality comparison if (he = dict_get(dict,key)) ^ == --- mg_err.o --- mg_err.c:63:7: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] --- mg_parse.o --- --- mg_dict_str.o --- mg_dict_str.c:222:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ --- mg_err.o --- (VOID_PTR)(ERR_MG_START + i), ^ --- mg_parse.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_parse.c --- mg_dm.o --- mg_dm.c:118:8: warning: implicit declaration of function 'gmatch' is invalid in C99 [-Wimplicit-function-declaration] if (!gmatch(dme->comment2,comment2)) ^ mg_dm.c:154:51: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] fprintf(stderr,"malloced %p %d %s-%s\n",ptr,size,comment1,comment2); ~~ ^~~~ %zu mg_dm.c:200:8: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] dme->size, ^~~~~~~~~ mg_dm.c:201:8: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] size, ^~~~ mg_dm.c:223:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (dme = dm_unregister_ptr(dm,ptr,comment1,comment2)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mg_dm.c:223:11: note: place parentheses around the assignment to silence this warning if (dme = dm_unregister_ptr(dm,ptr,comment1,comment2)) ^ ( ) mg_dm.c:223:11: note: use '==' to turn this assignment into an equality comparison if (dme = dm_unregister_ptr(dm,ptr,comment1,comment2)) ^ == mg_dm.c:268:4: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] dme->size, ^~~~~~~~~ mg_dm.c:281:35: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] fprintf(stderr,"cumulated=%d\n",dm->cumulated); ~~ ^~~~~~~~~~~~~ %zu mg_dm.c:282:32: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] fprintf(stderr,"in_use=%d\n",dm->in_use); ~~ ^~~~~~~~~~ %zu --- mg_err.o --- mg_err.c:88:6: warning: cast to 'void *' from smaller integer type 't_status' (aka 'int') [-Wint-to-void-pointer-cast] (VOID_PTR)errcode)) == NULL) ^ mg_err.c:120:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (err = err_msg(errcode)) ~~~~^~~~~~~~~~~~~~~~~~ mg_err.c:120:11: note: place parentheses around the assignment to silence this warning if (err = err_msg(errcode)) ^ ( ) mg_err.c:120:11: note: use '==' to turn this assignment into an equality comparison if (err = err_msg(errcode)) ^ == --- mg_printf.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_printf.c --- mg_stack.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_stack.c --- mg_dict_int.o --- mg_dict_int.c:74:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = index(str,'=')) ~~^~~~~~~~~~~~~~~~ mg_dict_int.c:74:13: note: place parentheses around the assignment to silence this warning if (s = index(str,'=')) ^ ( ) mg_dict_int.c:74:13: note: use '==' to turn this assignment into an equality comparison if (s = index(str,'=')) ^ == --- mg_id.o --- 7 warnings generated. --- mg_str.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_str.c --- mg_dict.o --- 4 warnings generated. --- mg_sysdep.o --- --- mg_dict_str.o --- 4 warnings generated. --- mg_sysdep.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_sysdep.c --- mg_assoc.o --- mg_assoc.c:54:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (a = assoc_str_ptr_from_left(assoc,left)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mg_assoc.c:54:9: note: place parentheses around the assignment to silence this warning if (a = assoc_str_ptr_from_left(assoc,left)) ^ ( ) mg_assoc.c:54:9: note: use '==' to turn this assignment into an equality comparison if (a = assoc_str_ptr_from_left(assoc,left)) ^ == --- mg_vec.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_vec.c --- mg_vec_buf.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_vec_buf.c --- mg_err.o --- 3 warnings generated. --- mg_vec_int.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_vec_int.c --- mg_dict_int.o --- 1 warning generated. --- mg_vec_ptr.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_vec_ptr.c --- mg_dm.o --- 9 warnings generated. --- mg_vec_str.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_vec_str.c --- mg_assoc.o --- 1 warning generated. --- mg_opt.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c mg_opt.c --- gdm.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c gdm.c --- gmatch.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c gmatch.c --- mg_parse.o --- mg_parse.c:329:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ptr = bindex(bc->buf,bc->len,'\n')) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mg_parse.c:329:15: note: place parentheses around the assignment to silence this warning if (ptr = bindex(bc->buf,bc->len,'\n')) ^ ( ) mg_parse.c:329:15: note: use '==' to turn this assignment into an equality comparison if (ptr = bindex(bc->buf,bc->len,'\n')) ^ == --- snprintf.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c snprintf.c --- mg_misc.o --- mg_misc.c:80:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ --- mg_printf.o --- mg_printf.c:21:7: warning: implicitly declaring library function 'iscntrl' with type 'int (int)' [-Wimplicit-function-declaration] if (iscntrl(ch) && ch != '\n' && ch != '\t') ^ mg_printf.c:21:7: note: include the header or explicitly provide a declaration for 'iscntrl' --- mg_misc.o --- 1 warning generated. --- mg_parse.o --- 1 warning generated. --- pat_16.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_16.c --- pat_32.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_32.c --- mg_opt.o --- mg_opt.c:254:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ --- mg_printf.o --- 1 warning generated. --- pat_8.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_8.c --- mg_mask.o --- mg_mask.c:63:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (mask_def = mask_get_def_from_str(defs,str)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mg_mask.c:63:17: note: place parentheses around the assignment to silence this warning if (mask_def = mask_get_def_from_str(defs,str)) ^ ( ) mg_mask.c:63:17: note: use '==' to turn this assignment into an equality comparison if (mask_def = mask_get_def_from_str(defs,str)) ^ == --- pat_arp.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_arp.c --- mg_opt.o --- 1 warning generated. --- pat_boolean.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_boolean.c --- pat_bootp.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_bootp.c --- pat_buf.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_buf.c --- mg_vec_str.o --- mg_vec_str.c:37:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tmp = strdup_alloc(s3, ~~~~^~~~~~~~~~~~~~~~~~ mg_vec_str.c:37:12: note: place parentheses around the assignment to silence this warning if (tmp = strdup_alloc(s3, ^ mg_vec_str.c:37:12: note: use '==' to turn this assignment into an equality comparison if (tmp = strdup_alloc(s3, ^ == mg_vec_str.c:51:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tmp = strdup_alloc(s3, ~~~~^~~~~~~~~~~~~~~~~~ mg_vec_str.c:51:15: note: place parentheses around the assignment to silence this warning if (tmp = strdup_alloc(s3, ^ mg_vec_str.c:51:15: note: use '==' to turn this assignment into an equality comparison if (tmp = strdup_alloc(s3, ^ == --- mg_vec_int.o --- mg_vec_int.c:37:28: warning: format specifies type 'int' but the argument has type 'void *' [-Wformat] fprintf(stderr,"%d ",p); ~~ ^ --- pat_bytebuf.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_bytebuf.c --- mg_mask.o --- 1 warning generated. --- pat_data.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_data.c --- gmatch.o --- gmatch.c:42:12: warning: implicit declaration of function 'glob_match' is invalid in C99 [-Wimplicit-function-declaration] return (glob_match(pattern,text,0,GMATCH_SENSITIVE)); ^ --- pat_dns.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_dns.c --- pat_ethaddr.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_ethaddr.c --- mg_vec_int.o --- 1 warning generated. --- pat_ether.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_ether.c --- pat_8.o --- pat_8.c:158:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] --- mg_vec_str.o --- 2 warnings generated. --- pat_8.o --- if (assoc = assoc_str_int_from_right(ascii_assocs, ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_8.c:158:13: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_int_from_right(ascii_assocs, ^ pat_8.c:158:13: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_int_from_right(ascii_assocs, ^ == pat_8.c:179:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(ascii_assocs, ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_8.c:179:13: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(ascii_assocs, ^ pat_8.c:179:13: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_left(ascii_assocs, ^ == pat_8.c:403:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_int_from_right(assocs,(int)c)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_8.c:403:13: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_int_from_right(assocs,(int)c)) ^ ( ) pat_8.c:403:13: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_int_from_right(assocs,(int)c)) ^ == pat_8.c:424:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(assocs,value)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_8.c:424:13: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(assocs,value)) ^ ( ) pat_8.c:424:13: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_left(assocs,value)) ^ == --- pat_icmp.o --- --- pat_8.o --- pat_8.c:595:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_int_from_right(bfad->assocs,(int)u8ret)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_8.c:595:13: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_int_from_right(bfad->assocs,(int)u8ret)) ^ ( ) pat_8.c:595:13: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_int_from_right(bfad->assocs,(int)u8ret)) ^ == pat_8.c:618:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(bfad->assocs,value)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_8.c:618:13: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(bfad->assocs,value)) ^ ( ) pat_8.c:618:13: note: use '==' to turn this assignment into an equality comparison --- pat_icmpcode.o --- --- pat_8.o --- if (assoc = assoc_str_ptr_from_left(bfad->assocs,value)) ^ == --- pat_icmp.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_icmp.c --- pat_icmpcode.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_icmpcode.c --- pat_ieee802.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_ieee802.c --- pat_16.o --- pat_16.c:368:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_int_from_right(assocs,(int)u16)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_16.c:368:13: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_int_from_right(assocs,(int)u16)) ^ ( ) pat_16.c:368:13: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_int_from_right(assocs,(int)u16)) ^ == pat_16.c:390:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(assocs,value)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_16.c:390:13: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(assocs,value)) ^ ( ) pat_16.c:390:13: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_left(assocs,value)) ^ == pat_16.c:709:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_int_from_right(bfad->assocs,(int)u16ret)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_16.c:709:13: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_int_from_right(bfad->assocs,(int)u16ret)) ^ ( ) pat_16.c:709:13: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_int_from_right(bfad->assocs,(int)u16ret)) ^ == pat_16.c:734:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(bfad->assocs,value)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_16.c:734:13: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(bfad->assocs,value)) ^ ( ) pat_16.c:734:13: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_left(bfad->assocs,value)) ^ == --- pat_8.o --- 6 warnings generated. --- pat_igmp.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_igmp.c --- gmatch.o --- 1 warning generated. --- pat_inaddr.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_inaddr.c --- pat_ip.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_ip.c --- pat_32.o --- pat_32.c:292:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_int_from_right(assocs,(int)u32)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_32.c:292:13: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_int_from_right(assocs,(int)u32)) ^ ( ) pat_32.c:292:13: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_int_from_right(assocs,(int)u32)) ^ == pat_32.c:313:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(assocs,value)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_32.c:313:13: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(assocs,value)) ^ ( ) pat_32.c:313:13: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_left(assocs,value)) ^ == pat_32.c:382:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_int_from_right(assocs,(int)u32)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_32.c:382:13: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_int_from_right(assocs,(int)u32)) ^ ( ) pat_32.c:382:13: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_int_from_right(assocs,(int)u32)) ^ == pat_32.c:403:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(assocs,value)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_32.c:403:13: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(assocs,value)) ^ ( ) pat_32.c:403:13: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_left(assocs,value)) ^ == --- pat_16.o --- 4 warnings generated. --- pat_ipproto.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_ipproto.c --- pat_mac.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_mac.c --- pat_null.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_null.c --- pat_32.o --- 4 warnings generated. --- pat_pad.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_pad.c --- pat_pat.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_pat.c --- pat_bootp.o --- pat_bootp.c:741:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(id, ~~~^~~~~~~~~~~~ pat_bootp.c:741:10: note: place parentheses around the assignment to silence this warning if (he = id_get(id, ^ pat_bootp.c:741:10: note: use '==' to turn this assignment into an equality comparison if (he = id_get(id, ^ == pat_bootp.c:753:8: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (VOID_PTR)(++i))) != 0) ^ --- pat_dns.o --- pat_dns.c:249:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(optional_id, ~~~^~~~~~~~~~~~~~~~~~~~~ pat_dns.c:249:14: note: place parentheses around the assignment to silence this warning if (he = id_get(optional_id, ^ pat_dns.c:249:14: note: use '==' to turn this assignment into an equality comparison if (he = id_get(optional_id, ^ == pat_dns.c:264:6: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (VOID_PTR)nquestions)) != 0) ^ --- pat_port.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_port.c --- pat_dns.o --- pat_dns.c:717:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(optional_id, ~~~^~~~~~~~~~~~~~~~~~~~~ pat_dns.c:717:14: note: place parentheses around the assignment to silence this warning if (he = id_get(optional_id, ^ pat_dns.c:717:14: note: use '==' to turn this assignment into an equality comparison if (he = id_get(optional_id, ^ == pat_dns.c:725:6: warning: cast to 'void *' from smaller integer type 't_u32' (aka 'unsigned int') [-Wint-to-void-pointer-cast] (VOID_PTR)((t_u32)(safe_ntohs(&dns->nquestions))))) != 0) ^ --- pat_rip.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_rip.c --- pat_rpc.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_rpc.c --- pat_ipproto.o --- pat_ipproto.c:53:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (protoentry = getprotobyname(str)) ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ pat_ipproto.c:53:22: note: place parentheses around the assignment to silence this warning if (protoentry = getprotobyname(str)) ^ ( ) pat_ipproto.c:53:22: note: use '==' to turn this assignment into an equality comparison if (protoentry = getprotobyname(str)) ^ == pat_ipproto.c:62:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(ipproto_assocs,str)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_ipproto.c:62:17: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(ipproto_assocs,str)) ^ ( ) pat_ipproto.c:62:17: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_left(ipproto_assocs,str)) ^ == pat_ipproto.c:84:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (protoentry = getprotobynumber(proto)) ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ pat_ipproto.c:84:22: note: place parentheses around the assignment to silence this warning if (protoentry = getprotobynumber(proto)) ^ ( ) pat_ipproto.c:84:22: note: use '==' to turn this assignment into an equality comparison if (protoentry = getprotobynumber(proto)) ^ == pat_ipproto.c:95:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_int_from_right(ipproto_assocs,proto)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_ipproto.c:95:17: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_int_from_right(ipproto_assocs,proto)) ^ ( ) pat_ipproto.c:95:17: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_int_from_right(ipproto_assocs,proto)) ^ == pat_ipproto.c:144:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (protoentry = getprotoent()) ~~~~~~~~~~~^~~~~~~~~~~~~~~ pat_ipproto.c:144:21: note: place parentheses around the assignment to silence this warning while (protoentry = getprotoent()) ^ ( ) pat_ipproto.c:144:21: note: use '==' to turn this assignment into an equality comparison while (protoentry = getprotoent()) ^ == --- pat_rpcnum.o --- --- pat_seqack.o --- --- pat_rpcnum.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_rpcnum.c --- pat_seqack.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_seqack.c --- pat_bootp.o --- 2 warnings generated. --- pat_shortbuf.o --- --- pat_dns.o --- 4 warnings generated. --- pat_shortbuf.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_shortbuf.c --- pat_subnet.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_subnet.c --- pat_sz.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_sz.c --- pat_ip.o --- pat_ip.c:594:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(id, ~~~^~~~~~~~~~~~ pat_ip.c:594:10: note: place parentheses around the assignment to silence this warning if (he = id_get(id, ^ pat_ip.c:594:10: note: use '==' to turn this assignment into an equality comparison if (he = id_get(id, ^ == pat_ip.c:606:8: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (VOID_PTR)(++i))) != 0) ^ pat_ip.c:1113:5: warning: cast to 'void *' from smaller integer type 't_u32' (aka 'unsigned int') [-Wint-to-void-pointer-cast] (VOID_PTR)inaddr)) != 0) ^ pat_ip.c:1118:5: warning: cast to 'void *' from smaller integer type 't_u32' (aka 'unsigned int') [-Wint-to-void-pointer-cast] (VOID_PTR)inaddr)) != 0) ^ pat_ip.c:1144:9: warning: cast to 'void *' from smaller integer type 't_u32' (aka 'unsigned int') [-Wint-to-void-pointer-cast] (VOID_PTR)(t_u32)p)) ^ pat_ip.c:1143:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(pat_ip_sub_id, ~~~^~~~~~~~~~~~~~~~~~~~~~~ pat_ip.c:1143:14: note: place parentheses around the assignment to silence this warning if (he = id_get(pat_ip_sub_id, ^ pat_ip.c:1143:14: note: use '==' to turn this assignment into an equality comparison if (he = id_get(pat_ip_sub_id, ^ == --- pat_tcp.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_tcp.c --- pat_tftp.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_tftp.c --- pat_ipproto.o --- 5 warnings generated. --- pat_time.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_time.c --- pat_tr.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_tr.c --- pat_udp.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat_udp.c --- pat_ip.o --- 6 warnings generated. --- pat_pat.o --- pat_pat.c:217:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = dict_get(pat_dict,str)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~ pat_pat.c:217:10: note: place parentheses around the assignment to silence this warning if (he = dict_get(pat_dict,str)) ^ ( ) pat_pat.c:217:10: note: use '==' to turn this assignment into an equality comparison if (he = dict_get(pat_dict,str)) ^ == --- pat.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pat.c --- pat_port.o --- pat_port.c:31:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (serventry = getservbyname(str,proto)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ pat_port.c:31:21: note: place parentheses around the assignment to silence this warning if (serventry = getservbyname(str,proto)) ^ ( ) pat_port.c:31:21: note: use '==' to turn this assignment into an equality comparison if (serventry = getservbyname(str,proto)) ^ == pat_port.c:60:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (serventry = getservbyport(UNSAFE_HTONS(port),proto)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pat_port.c:60:21: note: place parentheses around the assignment to silence this warning if (serventry = getservbyport(UNSAFE_HTONS(port),proto)) ^ ( ) pat_port.c:60:21: note: use '==' to turn this assignment into an equality comparison if (serventry = getservbyport(UNSAFE_HTONS(port),proto)) ^ == pat_port.c:132:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (serventry = getservent()) ~~~~~~~~~~^~~~~~~~~~~~~~ pat_port.c:132:20: note: place parentheses around the assignment to silence this warning while (serventry = getservent()) ^ ( ) pat_port.c:132:20: note: use '==' to turn this assignment into an equality comparison while (serventry = getservent()) ^ == --- pat_pad.o --- pat_pad.c:76:6: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (VOID_PTR)i, ^ pat_pad.c:93:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(id, ~~~^~~~~~~~~~~~ pat_pad.c:93:10: note: place parentheses around the assignment to silence this warning if (he = id_get(id, ^ pat_pad.c:93:10: note: use '==' to turn this assignment into an equality comparison if (he = id_get(id, ^ == pat_pad.c:105:8: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (VOID_PTR)(++i))) != 0) ^ --- pat_port.o --- 3 warnings generated. --- patdef.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c patdef.c --- pat_pad.o --- 3 warnings generated. --- nbgethost.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c nbgethost.c --- pat_pat.o --- 1 warning generated. --- pkt.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pkt.c --- pat_seqack.o --- pat_seqack.c:36:9: warning: implicit declaration of function 'safe_ntohl' is invalid in C99 [-Wimplicit-function-declaration] seq = safe_ntohl(&sa->seq); /* alignment */ ^ --- pat_rpcnum.o --- pat_rpcnum.c:36:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rpcentry = getrpcbyname(str)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ pat_rpcnum.c:36:20: note: place parentheses around the assignment to silence this warning if (rpcentry = getrpcbyname(str)) ^ ( ) pat_rpcnum.c:36:20: note: use '==' to turn this assignment into an equality comparison if (rpcentry = getrpcbyname(str)) ^ == pat_rpcnum.c:64:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rpcentry = getrpcbynumber(rpc)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ pat_rpcnum.c:64:20: note: place parentheses around the assignment to silence this warning if (rpcentry = getrpcbynumber(rpc)) ^ ( ) pat_rpcnum.c:64:20: note: use '==' to turn this assignment into an equality comparison if (rpcentry = getrpcbynumber(rpc)) ^ == pat_rpcnum.c:124:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (rpcentry = getrpcent()) ~~~~~~~~~^~~~~~~~~~~~~ pat_rpcnum.c:124:19: note: place parentheses around the assignment to silence this warning while (rpcentry = getrpcent()) ^ ( ) pat_rpcnum.c:124:19: note: use '==' to turn this assignment into an equality comparison while (rpcentry = getrpcent()) ^ == --- pat_subnet.o --- pat_subnet.c:58:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (bits_str = index(safe_str,'/')) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ pat_subnet.c:58:16: note: place parentheses around the assignment to silence this warning if (bits_str = index(safe_str,'/')) ^ ( ) pat_subnet.c:58:16: note: use '==' to turn this assignment into an equality comparison if (bits_str = index(safe_str,'/')) ^ == pat_subnet.c:63:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (mask_str = index(safe_str,':')) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ pat_subnet.c:63:18: note: place parentheses around the assignment to silence this warning if (mask_str = index(safe_str,':')) ^ ( ) pat_subnet.c:63:18: note: use '==' to turn this assignment into an equality comparison if (mask_str = index(safe_str,':')) ^ == pat_subnet.c:67:25: warning: implicit declaration of function 'inet_addr' is invalid in C99 [-Wimplicit-function-declaration] subnet->addr.s_addr = inet_addr(safe_str); ^ pat_subnet.c:150:17: warning: implicit declaration of function 'inaddr_to_str' is invalid in C99 [-Wimplicit-function-declaration] if ((status = inaddr_to_str(&(subnet->addr), ^ pat_subnet.c:290:30: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] fprintf(stderr,"addr=%s\n",inet_ntoa(subnet->addr)); ^ pat_subnet.c:290:30: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] fprintf(stderr,"addr=%s\n",inet_ntoa(subnet->addr)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~ %d pat_subnet.c:291:30: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] fprintf(stderr,"mask=%s\n",inet_ntoa(subnet->mask)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~ %d pat_subnet.c:292:31: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] fprintf(stderr,"cable=%s\n",inet_ntoa(subnet->cable)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~ %d pat_subnet.c:293:35: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] fprintf(stderr,"broadcast=%s\n",inet_ntoa(subnet->broadcast)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ %d --- pat_seqack.o --- 1 warning generated. --- pktio.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pktio.c --- pktsav.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c pktsav.c --- paterr.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c paterr.c --- pat_rpcnum.o --- 3 warnings generated. --- gmt2local.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c gmt2local.c --- pat_tcp.o --- pat_tcp.c:442:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(id, ~~~^~~~~~~~~~~~ pat_tcp.c:442:10: note: place parentheses around the assignment to silence this warning if (he = id_get(id, ^ pat_tcp.c:442:10: note: use '==' to turn this assignment into an equality comparison if (he = id_get(id, ^ == pat_tcp.c:454:8: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (VOID_PTR)(++i))) != 0) ^ pat_tcp.c:842:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(optional_id, ~~~^~~~~~~~~~~~~~~~~~~~~ pat_tcp.c:842:11: note: place parentheses around the assignment to silence this warning if (he = id_get(optional_id, ^ pat_tcp.c:842:11: note: use '==' to turn this assignment into an equality comparison if (he = id_get(optional_id, ^ == pat_tcp.c:847:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(optional_id, ~~~^~~~~~~~~~~~~~~~~~~~~ pat_tcp.c:847:11: note: place parentheses around the assignment to silence this warning if (he = id_get(optional_id, ^ pat_tcp.c:847:11: note: use '==' to turn this assignment into an equality comparison if (he = id_get(optional_id, ^ == --- Xmg.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c Xmg.c --- XmgAction.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c XmgAction.c --- pat_subnet.o --- 9 warnings generated. --- XmgCvt.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c XmgCvt.c --- XmgDict.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c XmgDict.c --- nbgethost.o --- nbgethost.c:185:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = dict_get(inaddr_dict,str)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ nbgethost.c:185:11: note: place parentheses around the assignment to silence this warning if (he = dict_get(inaddr_dict,str)) ^ ( ) nbgethost.c:185:11: note: use '==' to turn this assignment into an equality comparison if (he = dict_get(inaddr_dict,str)) ^ == nbgethost.c:243:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = dict_get(hostname_dict,inet_ntoa(*mba_inaddr))) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- XmgErr.o --- --- nbgethost.o --- nbgethost.c:243:14: note: place parentheses around the assignment to silence this warning if (he = dict_get(hostname_dict,inet_ntoa(*mba_inaddr))) ^ ( ) nbgethost.c:243:14: note: use '==' to turn this assignment into an equality comparison if (he = dict_get(hostname_dict,inet_ntoa(*mba_inaddr))) ^ == nbgethost.c:249:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (hostentry = nbgethostbyaddr((char *)mba_inaddr, ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nbgethost.c:249:18: note: place parentheses around the assignment to silence this warning if (hostentry = nbgethostbyaddr((char *)mba_inaddr, ^ nbgethost.c:249:18: note: use '==' to turn this assignment into an equality comparison if (hostentry = nbgethostbyaddr((char *)mba_inaddr, ^ == --- XmgErr.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c XmgErr.c --- XmgFancy.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c XmgFancy.c --- pat_udp.o --- pat_udp.c:360:6: warning: cast to 'void *' from smaller integer type 't_u32' (aka 'unsigned int') [-Wint-to-void-pointer-cast] (VOID_PTR)(t_u32)dport)) ^ pat_udp.c:359:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(pat_udp_sub_id, ~~~^~~~~~~~~~~~~~~~~~~~~~~~ pat_udp.c:359:11: note: place parentheses around the assignment to silence this warning if (he = id_get(pat_udp_sub_id, ^ pat_udp.c:359:11: note: use '==' to turn this assignment into an equality comparison if (he = id_get(pat_udp_sub_id, ^ == pat_udp.c:367:8: warning: cast to 'void *' from smaller integer type 't_u32' (aka 'unsigned int') [-Wint-to-void-pointer-cast] (VOID_PTR)(t_u32)sport)) ^ pat_udp.c:366:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(pat_udp_sub_id, ~~~^~~~~~~~~~~~~~~~~~~~~~~~ pat_udp.c:366:13: note: place parentheses around the assignment to silence this warning if (he = id_get(pat_udp_sub_id, ^ pat_udp.c:366:13: note: use '==' to turn this assignment into an equality comparison if (he = id_get(pat_udp_sub_id, ^ == --- pat_tcp.o --- 4 warnings generated. --- XmgFileGet.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c XmgFileGet.c --- nbgethost.o --- 3 warnings generated. --- XmgI.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c XmgI.c --- pktio.o --- pktio.c:103:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] sizeof (t_pkt_io)); ^~~~~~~~~~~~~~~~~ pktio.c:138:17: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] patnamebuf,strlen(patnamebuf),patnamelen); ^~~~~~~~~~~~~~~~~~ --- pat.o --- pat.c:29:14: warning: implicit declaration of function 'gmt2local' is invalid in C99 [-Wimplicit-function-declaration] pat_zone = gmt2local(0); ^ --- patdef.o --- patdef.c:52:6: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (VOID_PTR)i, ^ patdef.c:130:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(optional_id, ~~~^~~~~~~~~~~~~~~~~~~~~ patdef.c:130:14: note: place parentheses around the assignment to silence this warning if (he = id_get(optional_id, ^ patdef.c:130:14: note: use '==' to turn this assignment into an equality comparison if (he = id_get(optional_id, ^ == patdef.c:143:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (VOID_PTR)(++i))) != 0) ^ --- pkt.o --- pkt.c:882:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ptr = index(str,'.')) ~~~~^~~~~~~~~~~~~~~~ --- pat.o --- pat.c:87:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] --- pkt.o --- pkt.c:882:11: note: place parentheses around the assignment to silence this warning if (ptr = index(str,'.')) ^ ( ) --- pat.o --- if (str = getenv("PAT_VERB_LEVEL")) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ --- pkt.o --- pkt.c:882:11: note: use '==' to turn this assignment into an equality comparison if (ptr = index(str,'.')) ^ == --- pat.o --- pat.c:87:11: note: place parentheses around the assignment to silence this warning if (str = getenv("PAT_VERB_LEVEL")) ^ ( ) pat.c:87:11: note: use '==' to turn this assignment into an equality comparison if (str = getenv("PAT_VERB_LEVEL")) ^ == --- patdef.o --- patdef.c:251:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(id, ~~~^~~~~~~~~~~~ patdef.c:251:10: note: place parentheses around the assignment to silence this warning if (he = id_get(id, ^ patdef.c:251:10: note: use '==' to turn this assignment into an equality comparison if (he = id_get(id, ^ == patdef.c:263:8: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (VOID_PTR)(++i))) != 0) ^ patdef.c:287:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = id_get(id, ~~~^~~~~~~~~~~~ patdef.c:287:10: note: place parentheses around the assignment to silence this warning if (he = id_get(id, ^ patdef.c:287:10: note: use '==' to turn this assignment into an equality comparison if (he = id_get(id, ^ == --- pkt.o --- pkt.c:1073:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = dict_get(pfdd->extra_vars,var)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pkt.c:1073:13: note: place parentheses around the assignment to silence this warning if (he = dict_get(pfdd->extra_vars,var)) ^ ( ) pkt.c:1073:13: note: use '==' to turn this assignment into an equality comparison if (he = dict_get(pfdd->extra_vars,var)) ^ == --- XmgMacro.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c XmgMacro.c --- pat_udp.o --- 4 warnings generated. --- XmgMessage.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c XmgMessage.c --- paterr.o --- paterr.c:76:7: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (VOID_PTR)(ERR_PAT_START + i), ^ --- XmgCvt.o --- XmgCvt.c:200:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_nleft(XmgGCMembersAssoc,member)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgCvt.c:200:17: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_nleft(XmgGCMembersAssoc,member)) ^ ( ) XmgCvt.c:200:17: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_nleft(XmgGCMembersAssoc,member)) ^ == XmgCvt.c:226:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(XmgGCFunctionAssoc,value)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgCvt.c:226:16: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(XmgGCFunctionAssoc,value)) ^ ( ) XmgCvt.c:226:16: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_left(XmgGCFunctionAssoc,value)) ^ == XmgCvt.c:297:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(XmgGCLineStyleAssoc,value)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgCvt.c:297:16: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(XmgGCLineStyleAssoc,value)) ^ ( ) XmgCvt.c:297:16: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_left(XmgGCLineStyleAssoc,value)) ^ == XmgCvt.c:311:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(XmgGCCapStyleAssoc,value)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgCvt.c:311:16: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(XmgGCCapStyleAssoc,value)) ^ ( ) XmgCvt.c:311:16: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_left(XmgGCCapStyleAssoc,value)) ^ == XmgCvt.c:325:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(XmgGCJoinStyleAssoc,value)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgCvt.c:325:16: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(XmgGCJoinStyleAssoc,value)) ^ ( ) XmgCvt.c:325:16: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_left(XmgGCJoinStyleAssoc,value)) ^ == XmgCvt.c:339:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(XmgGCFillStyleAssoc,value)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgCvt.c:339:16: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(XmgGCFillStyleAssoc,value)) ^ ( ) XmgCvt.c:339:16: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_left(XmgGCFillStyleAssoc,value)) ^ == XmgCvt.c:353:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(XmgGCFillRuleAssoc,value)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgCvt.c:353:16: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(XmgGCFillRuleAssoc,value)) ^ ( ) XmgCvt.c:353:16: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_left(XmgGCFillRuleAssoc,value)) ^ == XmgCvt.c:367:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(XmgGCArcModeAssoc,value)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgCvt.c:367:16: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(XmgGCArcModeAssoc,value)) ^ ( ) XmgCvt.c:367:16: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_left(XmgGCArcModeAssoc,value)) ^ == XmgCvt.c:513:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (assoc = assoc_str_ptr_from_left(XmgGCSubwindowModeAssoc,value)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgCvt.c:513:16: note: place parentheses around the assignment to silence this warning if (assoc = assoc_str_ptr_from_left(XmgGCSubwindowModeAssoc,value)) ^ ( ) XmgCvt.c:513:16: note: use '==' to turn this assignment into an equality comparison if (assoc = assoc_str_ptr_from_left(XmgGCSubwindowModeAssoc,value)) ^ == --- pktio.o --- 2 warnings generated. --- XmgPrompt.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c XmgPrompt.c --- pat.o --- 2 warnings generated. --- XmgPulldown.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c XmgPulldown.c --- patdef.o --- 6 warnings generated. --- SmeBSBM.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c SmeBSBM.c --- paterr.o --- 1 warning generated. --- XmgDict.o --- XmgDict.c:28:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = dict_get(XmgXFSDict,name)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgDict.c:28:10: note: place parentheses around the assignment to silence this warning if (he = dict_get(XmgXFSDict,name)) ^ ( ) XmgDict.c:28:10: note: use '==' to turn this assignment into an equality comparison if (he = dict_get(XmgXFSDict,name)) ^ == --- Xws.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c Xws.c --- XmgDict.o --- XmgDict.c:46:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = dict_get(XmgXFSDict,name)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgDict.c:46:10: note: place parentheses around the assignment to silence this warning if (he = dict_get(XmgXFSDict,name)) ^ ( ) XmgDict.c:46:10: note: use '==' to turn this assignment into an equality comparison if (he = dict_get(XmgXFSDict,name)) ^ == XmgDict.c:67:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = dict_get(XmgPixelDict,name)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgDict.c:67:10: note: place parentheses around the assignment to silence this warning if (he = dict_get(XmgPixelDict,name)) ^ ( ) XmgDict.c:67:10: note: use '==' to turn this assignment into an equality comparison if (he = dict_get(XmgPixelDict,name)) ^ == XmgDict.c:118:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = dict_get(XmgPixelDict,name)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgDict.c:118:10: note: place parentheses around the assignment to silence this warning if (he = dict_get(XmgPixelDict,name)) ^ ( ) XmgDict.c:118:10: note: use '==' to turn this assignment into an equality comparison if (he = dict_get(XmgPixelDict,name)) ^ == XmgDict.c:154:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = dict_get(XmgPixmapDict,name)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgDict.c:154:10: note: place parentheses around the assignment to silence this warning if (he = dict_get(XmgPixmapDict,name)) ^ ( ) XmgDict.c:154:10: note: use '==' to turn this assignment into an equality comparison if (he = dict_get(XmgPixmapDict,name)) ^ == XmgDict.c:212:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (he = dict_get(XmgPixmapDict,name)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgDict.c:212:10: note: place parentheses around the assignment to silence this warning if (he = dict_get(XmgPixmapDict,name)) ^ ( ) XmgDict.c:212:10: note: use '==' to turn this assignment into an equality comparison if (he = dict_get(XmgPixmapDict,name)) ^ == --- Tabs.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c Tabs.c --- XmgDict.o --- XmgDict.c:409:45: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] fprintf(stderr,"\t%d %x\n",xpr->depth,xpr->pixmap); ~~ ^~~~~~~~~~~ %lx --- XmgCvt.o --- 9 warnings generated. --- TextField.o --- --- XmgFancy.o --- XmgFancy.c:409:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (found_link = get_link(self,event,elt)) ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ XmgFancy.c:409:21: note: place parentheses around the assignment to silence this warning if (found_link = get_link(self,event,elt)) ^ ( ) XmgFancy.c:409:21: note: use '==' to turn this assignment into an equality comparison if (found_link = get_link(self,event,elt)) ^ == XmgFancy.c:401:15: warning: 27 enumeration values not handled in switch: 'ELT_BR', 'ELT_STR', 'ELT_NOP'... [-Wswitch] switch (elt->type) ^ XmgFancy.c:443:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (found_table = get_table(self,event,elt)) ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgFancy.c:443:22: note: place parentheses around the assignment to silence this warning --- TextField.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c TextField.c --- XmgFancy.o --- if (found_table = get_table(self,event,elt)) ^ ( ) XmgFancy.c:443:22: note: use '==' to turn this assignment into an equality comparison if (found_table = get_table(self,event,elt)) ^ == XmgFancy.c:435:15: warning: 28 enumeration values not handled in switch: 'ELT_BR', 'ELT_STR', 'ELT_NOP'... [-Wswitch] switch (elt->type) ^ XmgFancy.c:477:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (found_table = get_table_from_xy(self,x,y,elt)) ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgFancy.c:477:22: note: place parentheses around the assignment to silence this warning if (found_table = get_table_from_xy(self,x,y,elt)) ^ ( ) XmgFancy.c:477:22: note: use '==' to turn this assignment into an equality comparison if (found_table = get_table_from_xy(self,x,y,elt)) ^ == XmgFancy.c:469:15: warning: 28 enumeration values not handled in switch: 'ELT_BR', 'ELT_STR', 'ELT_NOP'... [-Wswitch] switch (elt->type) ^ XmgFancy.c:512:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (found_elt = get_elt(self,event,elt)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ XmgFancy.c:512:20: note: place parentheses around the assignment to silence this warning if (found_elt = get_elt(self,event,elt)) ^ ( ) XmgFancy.c:512:20: note: use '==' to turn this assignment into an equality comparison if (found_elt = get_elt(self,event,elt)) ^ == XmgFancy.c:560:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (child = get_child_from_widget(elt,w)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgFancy.c:560:16: note: place parentheses around the assignment to silence this warning if (child = get_child_from_widget(elt,w)) ^ ( ) XmgFancy.c:560:16: note: use '==' to turn this assignment into an equality comparison if (child = get_child_from_widget(elt,w)) ^ == XmgFancy.c:552:15: warning: 27 enumeration values not handled in switch: 'ELT_BR', 'ELT_STR', 'ELT_NOP'... [-Wswitch] switch (elt->type) ^ XmgFancy.c:591:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (child = get_next_widget_child(elt,ref,next_is_ok)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgFancy.c:591:16: note: place parentheses around the assignment to silence this warning if (child = get_next_widget_child(elt,ref,next_is_ok)) ^ ( ) XmgFancy.c:591:16: note: use '==' to turn this assignment into an equality comparison if (child = get_next_widget_child(elt,ref,next_is_ok)) ^ == XmgFancy.c:583:15: warning: 27 enumeration values not handled in switch: 'ELT_BR', 'ELT_STR', 'ELT_NOP'... [-Wswitch] switch (elt->type) ^ XmgFancy.c:833:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ptr = index(arg,'%')) ~~~~^~~~~~~~~~~~~~~~ XmgFancy.c:833:16: note: place parentheses around the assignment to silence this warning if (ptr = index(arg,'%')) ^ ( ) XmgFancy.c:833:16: note: use '==' to turn this assignment into an equality comparison if (ptr = index(arg,'%')) ^ == XmgFancy.c:996:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ptr = index(arg,'%')) ~~~~^~~~~~~~~~~~~~~~ XmgFancy.c:996:12: note: place parentheses around the assignment to silence this warning if (ptr = index(arg,'%')) ^ ( ) XmgFancy.c:996:12: note: use '==' to turn this assignment into an equality comparison if (ptr = index(arg,'%')) ^ == XmgFancy.c:1945:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (elt->title = FANCY.next_str_is_a_title) ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgFancy.c:1945:22: note: place parentheses around the assignment to silence this warning if (elt->title = FANCY.next_str_is_a_title) ^ ( ) XmgFancy.c:1945:22: note: use '==' to turn this assignment into an equality comparison if (elt->title = FANCY.next_str_is_a_title) ^ == XmgFancy.c:1971:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (parent = get_parent(self)) ~~~~~~~^~~~~~~~~~~~~~~~~~ XmgFancy.c:1971:18: note: place parentheses around the assignment to silence this warning if (parent = get_parent(self)) ^ ( ) XmgFancy.c:1971:18: note: use '==' to turn this assignment into an equality comparison if (parent = get_parent(self)) ^ == XmgFancy.c:1980:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (parent = get_parent(self)) ~~~~~~~^~~~~~~~~~~~~~~~~~ XmgFancy.c:1980:13: note: place parentheses around the assignment to silence this warning if (parent = get_parent(self)) ^ ( ) XmgFancy.c:1980:13: note: use '==' to turn this assignment into an equality comparison if (parent = get_parent(self)) ^ == XmgFancy.c:1990:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (parent = get_parent(self)) ~~~~~~~^~~~~~~~~~~~~~~~~~ XmgFancy.c:1990:15: note: place parentheses around the assignment to silence this warning if (parent = get_parent(self)) ^ ( ) XmgFancy.c:1990:15: note: use '==' to turn this assignment into an equality comparison if (parent = get_parent(self)) ^ == XmgFancy.c:2003:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (parent = get_parent(self)) ~~~~~~~^~~~~~~~~~~~~~~~~~ XmgFancy.c:2003:18: note: place parentheses around the assignment to silence this warning if (parent = get_parent(self)) ^ ( ) XmgFancy.c:2003:18: note: use '==' to turn this assignment into an equality comparison if (parent = get_parent(self)) ^ == XmgFancy.c:2065:11: warning: 24 enumeration values not handled in switch: 'ELT_BR', 'ELT_NOP', 'ELT_EMPTY_CELL'... [-Wswitch] switch (elt->type) ^ XmgFancy.c:2130:15: warning: 26 enumeration values not handled in switch: 'ELT_BR', 'ELT_STR', 'ELT_NOP'... [-Wswitch] switch (elt->type) ^ XmgFancy.c:2245:15: warning: 26 enumeration values not handled in switch: 'ELT_BR', 'ELT_STR', 'ELT_NOP'... [-Wswitch] switch (elt->type) ^ XmgFancy.c:2312:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (radio_elt = get_radio_by_name_different_from(elt, ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgFancy.c:2312:20: note: place parentheses around the assignment to silence this warning if (radio_elt = get_radio_by_name_different_from(elt, ^ XmgFancy.c:2312:20: note: use '==' to turn this assignment into an equality comparison if (radio_elt = get_radio_by_name_different_from(elt, ^ == XmgFancy.c:2304:15: warning: 27 enumeration values not handled in switch: 'ELT_BR', 'ELT_STR', 'ELT_NOP'... [-Wswitch] switch (elt->type) ^ XmgFancy.c:2881:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (other_radio_elt = ~~~~~~~~~~~~~~~~^ XmgFancy.c:2881:24: note: place parentheses around the assignment to silence this warning if (other_radio_elt = ^ XmgFancy.c:2881:24: note: use '==' to turn this assignment into an equality comparison if (other_radio_elt = ^ == XmgFancy.c:2368:15: warning: 4 enumeration values not handled in switch: 'ELT_NOP', 'ELT_ROOT', 'ELT_FORM'... [-Wswitch] switch (elt->type) ^ XmgFancy.c:3066:15: warning: 30 enumeration values not handled in switch: 'ELT_BR', 'ELT_STR', 'ELT_NOP'... [-Wswitch] switch (elt->type) ^ XmgFancy.c:3108:15: warning: 30 enumeration values not handled in switch: 'ELT_BR', 'ELT_STR', 'ELT_NOP'... [-Wswitch] switch (elt->type) ^ XmgFancy.c:3292:11: warning: 21 enumeration values not handled in switch: 'ELT_BR', 'ELT_NOP', 'ELT_EMPTY_CELL'... [-Wswitch] switch (elt->type) ^ XmgFancy.c:3671:15: warning: 21 enumeration values not handled in switch: 'ELT_BR', 'ELT_NOP', 'ELT_EMPTY_CELL'... [-Wswitch] switch (elt->type) ^ XmgFancy.c:4449:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (table = get_table(self,event,FANCY.root_elt)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgFancy.c:4449:13: note: place parentheses around the assignment to silence this warning if (table = get_table(self,event,FANCY.root_elt)) ^ ( ) XmgFancy.c:4449:13: note: use '==' to turn this assignment into an equality comparison if (table = get_table(self,event,FANCY.root_elt)) ^ == XmgFancy.c:4516:43: warning: too few arguments in call to 'fancy_strdup' nselection = fancy_strdup(FANCY.selection); ~~~~~~~~~~~~ ^ XmgFancy.c:4714:10: warning: implicit declaration of function 'XmgMacroNothing' is invalid in C99 [-Wimplicit-function-declaration] END), ^ ./XmgMacro.h:62:6: note: expanded from macro 'END' XmgMacroNothing( XmgMacroNothing( ^ XmgFancy.c:4718:7: warning: implicit declaration of function 'XmgSetDestroyOnDelete' is invalid in C99 [-Wimplicit-function-declaration] XmgSetDestroyOnDelete(shell); ^ XmgFancy.c:5262:12: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'Position' (aka 'short') declared in a previous prototype [-Wknr-promoted-parameter] Position x; ^ ./XmgFancy.h:78:32: note: previous declaration is here Position /* x */, ^ XmgFancy.c:5263:12: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'Position' (aka 'short') declared in a previous prototype [-Wknr-promoted-parameter] Position y; ^ ./XmgFancy.h:82:1: note: previous declaration is here ); ^ XmgFancy.c:5267:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (table = get_table_from_xy(self,x,y,FANCY.root_elt)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XmgFancy.c:5267:13: note: place parentheses around the assignment to silence this warning if (table = get_table_from_xy(self,x,y,FANCY.root_elt)) ^ ( ) XmgFancy.c:5267:13: note: use '==' to turn this assignment into an equality comparison if (table = get_table_from_xy(self,x,y,FANCY.root_elt)) ^ == --- pkt.o --- 2 warnings generated. --- ScrollText.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c ScrollText.c --- XmgI.o --- XmgI.c:30:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (str = getenv("XMG_VERB_LEVEL")) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ XmgI.c:30:11: note: place parentheses around the assignment to silence this warning if (str = getenv("XMG_VERB_LEVEL")) ^ ( ) XmgI.c:30:11: note: use '==' to turn this assignment into an equality comparison if (str = getenv("XMG_VERB_LEVEL")) ^ == --- XmgFileGet.o --- XmgFileGet.c:45:7: warning: implicit declaration of function 'XmgErrPrint' is invalid in C99 [-Wimplicit-function-declaration] XmgErrPrint(toplevel,status,"str_cat_str"); ^ XmgFileGet.c:87:5: warning: implicit declaration of function 'XmgMacroNothing' is invalid in C99 [-Wimplicit-function-declaration] CALLBACK(XtNselectCallback, ^ ./XmgMacro.h:77:24: note: expanded from macro 'CALLBACK' (XtPointer)(Dat)),DONE ^ ./XmgMacro.h:73:17: note: expanded from macro 'DONE' #define DONE XmgMacroNothing( NULL ^ XmgFileGet.c:97:7: warning: implicit declaration of function 'XmgCenterWidget' is invalid in C99 [-Wimplicit-function-declaration] XmgCenterWidget(xmg_filenom_shell); ^ --- XmgMacro.o --- XmgMacro.c:459:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (ptr = va_arg(ap,VOID_PTR)) ~~~~^~~~~~~~~~~~~~~~~~~~~ XmgMacro.c:459:14: note: place parentheses around the assignment to silence this warning while (ptr = va_arg(ap,VOID_PTR)) ^ ( ) XmgMacro.c:459:14: note: use '==' to turn this assignment into an equality comparison while (ptr = va_arg(ap,VOID_PTR)) ^ == --- Xmg.o --- Xmg.c:113:3: warning: implicit declaration of function 'XmgRegisterConverters' is invalid in C99 [-Wimplicit-function-declaration] XmgRegisterConverters(); ^ Xmg.c:121:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ --- XmgDict.o --- 7 warnings generated. --- Gcs.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c Gcs.c --- XmgErr.o --- XmgErr.c:40:7: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (VOID_PTR)(ERR_XMG_START + i), ^ --- XmgI.o --- 1 warning generated. --- FileNom.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c FileNom.c --- XmgErr.o --- XmgErr.c:75:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (err = err_msg(errcode)) ~~~~^~~~~~~~~~~~~~~~~~ XmgErr.c:75:11: note: place parentheses around the assignment to silence this warning if (err = err_msg(errcode)) ^ ( ) XmgErr.c:75:11: note: use '==' to turn this assignment into an equality comparison if (err = err_msg(errcode)) ^ == --- match.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c match.c --- XmgFileGet.o --- 3 warnings generated. --- Viewlist.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c Viewlist.c --- XmgMessage.o --- XmgMessage.c:50:21: warning: implicit declaration of function 'XmgMacroNothing' is invalid in C99 [-Wimplicit-function-declaration] END), ^ ./XmgMacro.h:62:6: note: expanded from macro 'END' XmgMacroNothing( XmgMacroNothing( ^ XmgMessage.c:61:3: warning: implicit declaration of function 'XmgCenterWidget' is invalid in C99 [-Wimplicit-function-declaration] XmgCenterWidget(shell); ^ XmgMessage.c:62:3: warning: implicit declaration of function 'XmgSetDestroyOnDelete' is invalid in C99 [-Wimplicit-function-declaration] XmgSetDestroyOnDelete(shell); ^ --- Xmg.o --- 2 warnings generated. --- XmgPrompt.o --- XmgPrompt.c:59:7: warning: implicit declaration of function 'XmgMacroNothing' is invalid in C99 [-Wimplicit-function-declaration] --- xipcap.o --- --- XmgPrompt.o --- END), ^ ./XmgMacro.h:62:6: note: expanded from macro 'END' XmgMacroNothing( XmgMacroNothing( ^ XmgPrompt.c:89:3: warning: implicit declaration of function 'XmgCenterWidget' is invalid in C99 [-Wimplicit-function-declaration] XmgCenterWidget(shell); ^ XmgPrompt.c:90:3: warning: implicit declaration of function 'XmgSetDestroyOnDelete' is invalid in C99 [-Wimplicit-function-declaration] XmgSetDestroyOnDelete(shell); ^ --- XmgMacro.o --- 1 warning generated. --- xipcap.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c xipcap.c --- xipcust.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c xipcust.c --- XmgMessage.o --- 3 warnings generated. --- XmgErr.o --- 2 warnings generated. --- xiperr.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c xiperr.c --- xipimg.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c xipimg.c --- XmgPrompt.o --- 3 warnings generated. --- xipnet.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c xipnet.c --- Tabs.o --- Tabs.c:721:32: warning: '&&' within '||' [-Wlogical-op-parentheses] if( (req->request_mode & CWX) && req->x != w->core.x || ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ~~ Tabs.c:721:32: note: place parentheses around the '&&' expression to silence this warning if( (req->request_mode & CWX) && req->x != w->core.x || ^ ( ) Tabs.c:722:32: warning: '&&' within '||' [-Wlogical-op-parentheses] (req->request_mode & CWY) && req->y != w->core.y || ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ Tabs.c:722:32: note: place parentheses around the '&&' expression to silence this warning (req->request_mode & CWY) && req->y != w->core.y || ^ ( ) Tabs.c:803:14: warning: enumeration value 'XtGeometryDone' not handled in switch [-Wswitch] switch( result ) { ^ Tabs.c:1162:2: warning: implicit declaration of function 'Draw3dBox' is invalid in C99 [-Wimplicit-function-declaration] Draw3dBox((Widget)tw, 0,tw->tabs.tab_total, ^ --- TextField.o --- TextField.c:935:34: warning: expression which evaluates to zero treated as a null pointer constant of type 'XtIntervalId *' (aka 'unsigned long *') [-Wnon-literal-null-conversion] ExtendTimer((XtPointer) w, (XtIntervalId) 0); ^~~~~~~~~~~~~~~~ TextField.c:1066:5: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] (XtPointer) pos, event->xbutton.time); ^ --- XmgPulldown.o --- XmgPulldown.c:74:14: warning: implicit declaration of function 'XmgMacroNothing' is invalid in C99 [-Wimplicit-function-declaration] CALLBACK(XtNcallback,(XtCallbackProc)proc,pulldown), ^ ./XmgMacro.h:77:24: note: expanded from macro 'CALLBACK' (XtPointer)(Dat)),DONE ^ ./XmgMacro.h:73:17: note: expanded from macro 'DONE' #define DONE XmgMacroNothing( NULL ^ 1 warning generated. --- xippkt.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c xippkt.c --- xiprepl.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c xiprepl.c --- xipres.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c xipres.c --- FileNom.o --- FileNom.c:811:54: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] XtAddCallback(menuEntry, XtNcallback, ChangeDir, (XtPointer) menuItem++); ^ FileNom.c:824:9: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] (XtPointer) menuItem++); ^ FileNom.c:1059:19: warning: incompatible pointer types passing 'Widget' (aka 'struct _WidgetRec *') to parameter of type 'FileNominatorWidget' (aka 'struct _FileNominatorRec *') [-Wincompatible-pointer-types] ChangeDirectory(fnw, 0); ^~~ FileNom.c:1098:19: warning: incompatible pointer types passing 'Widget' (aka 'struct _WidgetRec *') to parameter of type 'FileNominatorWidget' (aka 'struct _FileNominatorRec *') [-Wincompatible-pointer-types] ChangeDirectory(fnw, 0); ^~~ --- match.o --- match.c:66:10: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] return streq(p, s); ^ match.c:57:38: note: expanded from macro 'streq' #define streq(x, y) (*(x) == *(y) && strcmp(x, y) == 0) ^ match.c:66:10: note: include the header or explicitly provide a declaration for 'strcmp' match.c:57:38: note: expanded from macro 'streq' #define streq(x, y) (*(x) == *(y) && strcmp(x, y) == 0) ^ --- FileNom.o --- FileNom.c:1239:2: warning: implicit declaration of function 'XawViewportSetLocation' is invalid in C99 [-Wimplicit-function-declaration] XawViewportSetLocation(Child(fnw,viewport), 0.0, 0.0); ^ FileNom.c:1287:22: warning: incompatible pointer types passing 'Widget' (aka 'struct _WidgetRec *') to parameter of type 'FileNominatorWidget' (aka 'struct _FileNominatorRec *') [-Wincompatible-pointer-types] PositionChildren(fnw); ^~~ --- xipcust.o --- xipcust.c:68:7: warning: implicit declaration of function 'waitpid' is invalid in C99 [-Wimplicit-function-declaration] waitpid(custom_pid,&custom_status,NULL); ^ --- xipshcut.o --- --- FileNom.o --- FileNom.c:1488:21: warning: incompatible pointer types passing 'Widget' (aka 'struct _WidgetRec *') to parameter of type 'FileNominatorWidget' (aka 'struct _FileNominatorRec *') [-Wincompatible-pointer-types] ChangeDirectory(fnw, 0); ^~~ --- xipshcut.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c xipshcut.c --- xipvar.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c xipvar.c --- xipnet.o --- xipnet.c:66:7: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] xmd->xp->pkt->buf, ^~~~~~~~~~~~~~~~~ /data/scratch/net/xipdump/work/.buildlink/include/libnet10/./libnet/libnet-functions.h:535:13: note: passing argument to parameter here u_char *, /* Pointer the u_char buf (the packet)to be written */ ^ --- Tabs.o --- 4 warnings generated. --- scandir.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c scandir.c --- XmgFancy.o --- 36 warnings generated. --- alphasort.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c alphasort.c --- main.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c main.c --- xipcust.o --- 1 warning generated. --- Group.o --- clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I/usr/include -I. -c Group.c --- xiperr.o --- xiperr.c:53:7: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (VOID_PTR)(ERR_XIP_START + i), ^ --- match.o --- 1 warning generated. --- xipcap.o --- xipcap.c:123:18: warning: implicit declaration of function 'xip_shortcuts_html_do' is invalid in C99 [-Wimplicit-function-declaration] if ((status = xip_shortcuts_html_do(&pkt, ^ xipcap.c:134:4: warning: implicit declaration of function 'XmgErrPrint' is invalid in C99 [-Wimplicit-function-declaration] XmgErrPrint(toplevel,status,"pkt_dup"); ^ xipcap.c:142:2: warning: implicit declaration of function 'XipCreateSmallPkt' is invalid in C99 [-Wimplicit-function-declaration] XipCreateSmallPkt(npkt, ^ xipcap.c:171:7: warning: implicit declaration of function 'pcap_read' is invalid in C99 [-Wimplicit-function-declaration] if (pcap_read(pcap, ^ --- xipnet.o --- 1 warning generated. --- xipcap.o --- xipcap.c:283:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (buf = (char *)pcap_next(pcap,&pp)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xipcap.c:283:13: note: place parentheses around the assignment to silence this warning if (buf = (char *)pcap_next(pcap,&pp)) ^ ( ) xipcap.c:283:13: note: use '==' to turn this assignment into an equality comparison if (buf = (char *)pcap_next(pcap,&pp)) ^ == --- xiperr.o --- 1 warning generated. --- FileNom.o --- 7 warnings generated. --- xipcap.o --- 5 warnings generated. --- TextField.o --- 2 warnings generated. --- xippkt.o --- xippkt.c:120:4: warning: implicit declaration of function 'XmgErrPrint' is invalid in C99 [-Wimplicit-function-declaration] XmgErrPrint(SHELL_OR_TOPLEVEL(own_xmd), ^ xippkt.c:348:4: warning: implicit declaration of function 'XmgShowPromptComplexPulldownBox' is invalid in C99 [-Wimplicit-function-declaration] XmgShowPromptComplexPulldownBox(SHELL_OR_TOPLEVEL(xmd), ^ xippkt.c:372:7: warning: implicit declaration of function 'XmgShowPromptBox' is invalid in C99 [-Wimplicit-function-declaration] XmgShowPromptBox(SHELL_OR_TOPLEVEL(xmd), ^ xippkt.c:449:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ xippkt.c:554:7: warning: implicit declaration of function 'XipCreateSmallPkt' is invalid in C99 [-Wimplicit-function-declaration] XipCreateSmallPkt(pkt,TRUE); ^ xippkt.c:1035:17: warning: implicit declaration of function 'xip_pkt_reply' is invalid in C99 [-Wimplicit-function-declaration] if ((status = xip_pkt_reply(pkt)) != 0) ^ xippkt.c:1083:17: warning: implicit declaration of function 'xip_pkt_custom' is invalid in C99 [-Wimplicit-function-declaration] if ((status = xip_pkt_custom(pkt,args)) != 0) ^ xippkt.c:1169:6: warning: implicit declaration of function 'XmgMacroNothing' is invalid in C99 [-Wimplicit-function-declaration] END), ^ ./XmgMacro.h:62:6: note: expanded from macro 'END' XmgMacroNothing( XmgMacroNothing( ^ xippkt.c:1173:3: warning: implicit declaration of function 'XmgSetDestroyOnDelete' is invalid in C99 [-Wimplicit-function-declaration] XmgSetDestroyOnDelete(shell); ^ xippkt.c:1402:11: warning: implicitly declaring library function 'isspace' with type 'int (int)' [-Wimplicit-function-declaration] if (isspace(*ptr)) ^ xippkt.c:1402:11: note: include the header or explicitly provide a declaration for 'isspace' --- xipvar.o --- xipvar.c:249:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (str = getenv("XIPDUMP_VERB_LEVEL")) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xipvar.c:249:11: note: place parentheses around the assignment to silence this warning if (str = getenv("XIPDUMP_VERB_LEVEL")) ^ ( ) xipvar.c:249:11: note: use '==' to turn this assignment into an equality comparison if (str = getenv("XIPDUMP_VERB_LEVEL")) ^ == xipvar.c:701:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (w = XtNameToWidget(shell,fqvarname)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xipvar.c:701:13: note: place parentheses around the assignment to silence this warning if (w = XtNameToWidget(shell,fqvarname)) ^ ( ) xipvar.c:701:13: note: use '==' to turn this assignment into an equality comparison if (w = XtNameToWidget(shell,fqvarname)) ^ == xipvar.c:929:13: warning: implicit declaration of function 'XmgMacroNothing' is invalid in C99 [-Wimplicit-function-declaration] END), ^ ./XmgMacro.h:62:6: note: expanded from macro 'END' XmgMacroNothing( XmgMacroNothing( ^ xipvar.c:965:3: warning: implicit declaration of function 'XmgSetDestroyOnDelete' is invalid in C99 [-Wimplicit-function-declaration] XmgSetDestroyOnDelete(shell); ^ --- main.o --- main.c:202:3: warning: implicit declaration of function 'xip_extra_vars_destroy' is invalid in C99 [-Wimplicit-function-declaration] xip_extra_vars_destroy(); ^ main.c:208:3: warning: implicit declaration of function 'XmgDestroy' is invalid in C99 [-Wimplicit-function-declaration] XmgDestroy(); ^ main.c:239:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (w = XipCreatePkt(pktbox, ~~^~~~~~~~~~~~~~~~~~~~~~ main.c:239:9: note: place parentheses around the assignment to silence this warning if (w = XipCreatePkt(pktbox, ^ main.c:239:9: note: use '==' to turn this assignment into an equality comparison if (w = XipCreatePkt(pktbox, ^ == main.c:275:7: warning: implicit declaration of function 'XmgErrPrint' is invalid in C99 [-Wimplicit-function-declaration] XmgErrPrint(status,"XIP_ALLOC_PROC"); ^ main.c:398:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fname = XmgFileGet("*.cf",FALSE)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:398:13: note: place parentheses around the assignment to silence this warning if (fname = XmgFileGet("*.cf",FALSE)) ^ ( ) main.c:398:13: note: use '==' to turn this assignment into an equality comparison if (fname = XmgFileGet("*.cf",FALSE)) ^ == main.c:423:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ptr = rindex(dirname,'/')) ~~~~^~~~~~~~~~~~~~~~~~~~~ main.c:423:11: note: place parentheses around the assignment to silence this warning if (ptr = rindex(dirname,'/')) ^ ( ) main.c:423:11: note: use '==' to turn this assignment into an equality comparison if (ptr = rindex(dirname,'/')) ^ == main.c:461:21: warning: implicit declaration of function 'pkt_load' is invalid in C99 [-Wimplicit-function-declaration] if ((status = pkt_load(npkt, ^ main.c:490:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fname = XmgFileGet("*.pkc",TRUE)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:490:13: note: place parentheses around the assignment to silence this warning if (fname = XmgFileGet("*.pkc",TRUE)) ^ ( ) main.c:490:13: note: use '==' to turn this assignment into an equality comparison if (fname = XmgFileGet("*.pkc",TRUE)) ^ == main.c:522:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ptr = rindex(basename,'.')) ~~~~^~~~~~~~~~~~~~~~~~~~~~ main.c:522:11: note: place parentheses around the assignment to silence this warning if (ptr = rindex(basename,'.')) ^ ( ) main.c:522:11: note: use '==' to turn this assignment into an equality comparison if (ptr = rindex(basename,'.')) ^ == main.c:524:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (without_slash = rindex(basename,'/')) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ main.c:524:21: note: place parentheses around the assignment to silence this warning if (without_slash = rindex(basename,'/')) ^ ( ) main.c:524:21: note: use '==' to turn this assignment into an equality comparison if (without_slash = rindex(basename,'/')) ^ == main.c:545:21: warning: implicit declaration of function 'pkt_save' is invalid in C99 [-Wimplicit-function-declaration] if ((status = pkt_save(xp->pkt,pktfname)) != 0) ^ main.c:574:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fname = XmgFileGet("*.pkc",FALSE)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:574:13: note: place parentheses around the assignment to silence this warning if (fname = XmgFileGet("*.pkc",FALSE)) ^ ( ) main.c:574:13: note: use '==' to turn this assignment into an equality comparison if (fname = XmgFileGet("*.pkc",FALSE)) ^ == main.c:816:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (win = XwsFindNetscapeWindow(XtDisplay(w), ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:816:11: note: place parentheses around the assignment to silence this warning if (win = XwsFindNetscapeWindow(XtDisplay(w), ^ main.c:816:11: note: use '==' to turn this assignment into an equality comparison if (win = XwsFindNetscapeWindow(XtDisplay(w), ^ == main.c:878:5: warning: implicit declaration of function 'XmgMacroNothing' is invalid in C99 [-Wimplicit-function-declaration] CALLBACK(XtNlinkCallback, ^ ./XmgMacro.h:77:24: note: expanded from macro 'CALLBACK' (XtPointer)(Dat)),DONE ^ ./XmgMacro.h:73:17: note: expanded from macro 'DONE' #define DONE XmgMacroNothing( NULL ^ main.c:894:7: warning: implicit declaration of function 'XmgSetPopdownOnDelete' is invalid in C99 [-Wimplicit-function-declaration] XmgSetPopdownOnDelete(aboutshell); ^ main.c:1535:17: warning: implicit declaration of function 'XmgPixmapDictAdd' is invalid in C99 [-Wimplicit-function-declaration] if ((status = XmgPixmapDictAdd("internal:xipicon.xbm", ^ main.c:1568:17: warning: implicit declaration of function 'xip_extra_vars_get_from_xrm' is invalid in C99 [-Wimplicit-function-declaration] if ((status = xip_extra_vars_get_from_xrm()) != 0) ^ main.c:1798:17: warning: implicit declaration of function 'xip_cap_init' is invalid in C99 [-Wimplicit-function-declaration] if ((status = xip_cap_init()) != 0) ^ main.c:1808:17: warning: implicit declaration of function 'xip_net_init' is invalid in C99 [-Wimplicit-function-declaration] if ((status = xip_net_init()) != 0) ^ main.c:1866:17: warning: implicit declaration of function 'err_xmg_init' is invalid in C99 [-Wimplicit-function-declaration] if ((status = err_xmg_init()) != 0) ^ main.c:1906:3: warning: implicit declaration of function 'XmgDebugInit' is invalid in C99 [-Wimplicit-function-declaration] XmgDebugInit(); ^ --- xippkt.o --- 10 warnings generated. --- xipvar.o --- 4 warnings generated. --- main.o --- 21 warnings generated. --- xipdump --- clang -o xipdump mg_alloc.o mg_arr.o mg_arr_char.o mg_assoc.o mg_bit.o mg_buf.o mg_dict.o mg_dict_int.o mg_dict_str.o mg_dm.o mg_dyn_str.o mg_err.o mg_hash.o mg_id.o mg_id_ptr.o mg_id_str.o mg_int.o mg_mask.o mg_misc.o mg_parse.o mg_printf.o mg_stack.o mg_str.o mg_sysdep.o mg_vec.o mg_vec_buf.o mg_vec_int.o mg_vec_ptr.o mg_vec_str.o mg_opt.o gdm.o gmatch.o snprintf.o pat_16.o pat_32.o pat_8.o pat_arp.o pat_boolean.o pat_bootp.o pat_buf.o pat_bytebuf.o pat_data.o pat_dns.o pat_ethaddr.o pat_ether.o pat_icmp.o pat_icmpcode.o pat_ieee802.o pat_igmp.o pat_inaddr.o pat_ip.o pat_ipproto.o pat_mac.o pat_null.o pat_pad.o pat_pat.o pat_port.o pat_rip.o pat_rpc.o pat_rpcnum.o pat_seqack.o pat_shortbuf.o pat_subnet.o pat_sz.o pat_tcp.o pat_tftp.o pat_time.o pat_tr.o pat_udp.o pat.o patdef.o nbgethost.o pkt.o pktio.o pktsav.o paterr.o gmt2local.o Xmg.o XmgAction.o XmgCvt.o XmgDict.o XmgErr.o XmgFancy.o XmgFileGet.o XmgI.o XmgMacro.o XmgMessage.o XmgPrompt.o XmgPulldown.o Group.o SmeBSBM.o Xws.o Tabs.o TextField.o ScrollText.o Gcs.o FileNom.o match.o Viewlist.o xipcap.o xipcust.o xiperr.o xipimg.o xipnet.o xippkt.o xiprepl.o xipres.o xipshcut.o xipvar.o scandir.o alphasort.o main.o -L/usr/pkg/lib/libnet10 -Wl,-R/usr/pkg/lib/libnet10 -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lXaw -lXmu -lXt -lXext -lX11 -lpcap -lnet xippkt.o: In function `xip_method_proc_edit': xippkt.c:(.text+0x1b21): warning: warning: mktemp() possibly used unsafely, use mkstemp() or mkdtemp() xipcap.o: In function `read_pcap': xipcap.c:(.text+0x250): undefined reference to `pcap_read' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [xipdump] Error code 1 make: stopped in /data/scratch/net/xipdump/work/xipdump-1.5.4 1 error make: stopped in /data/scratch/net/xipdump/work/xipdump-1.5.4 *** Error code 2 Stop. make[1]: stopped in /data/pkgsrc/net/xipdump *** Error code 1 Stop. make: stopped in /data/pkgsrc/net/xipdump