bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compilation fails on Darwin 11.4.2 in darwin-nat.c


From: Joshua Kordani
Subject: Compilation fails on Darwin 11.4.2 in darwin-nat.c
Date: Wed, 22 Jul 2015 13:41:40 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

cc1: warnings being treated as errors
darwin-nat.c: In function ‘darwin_ptrace’:
darwin-nat.c:259: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 5 has type ‘caddr_t’
darwin-nat.c: In function ‘darwin_resume’:
darwin-nat.c:839: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 4 has type ‘long int’
darwin-nat.c: In function ‘cancel_breakpoint’:
darwin-nat.c:1065: warning: format ‘%x’ expects type ‘unsigned int’, but 
argument 3 has type ‘long int’
darwin-nat.c: In function ‘_initialize_darwin_inferior’:
darwin-nat.c:2174: warning: format ‘%lx’ expects type ‘long unsigned int’, but 
argument 3 has type ‘mach_port_t’


patch attached, although I don't know if the change for line 259 and 2174 are 
the right approach.
--
Joshua Kordani
LSA Autonomy

Attachment: patch.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]