openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: svn commit: r1853643 - in /openoffice/trunk/main: ./ apple_remote/ apple_remote/prj/ apple_remote/source/
Date Tue, 19 Feb 2019 19:58:37 GMT
Well, making the change got be building, but w/ fatal errors:

=============
Building module apple_remote
=============

Entering /Users/jim/src/asf/trunk/main/apple_remote/prj

cd .. && make -s -r -j6   && make -s -r deliverlog
[ build OCX ] apple_remote/source/AppleRemote
[ build OCX ] apple_remote/source/RemoteControl
[ build OCX ] apple_remote/source/RemoteControlContainer
[ build OCX ] apple_remote/source/GlobalKeyboardDevice
[ build OCX ] apple_remote/source/HIDRemoteControlDevice
[ build OCX ] apple_remote/source/MultiClickRemoteBehavior
[ build OCX ] apple_remote/source/RemoteMainController
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteControl.mm:65:39: warning: unused
parameter 'value' [-Wunused-parameter]
- (void) setListeningToRemote: (BOOL) value {
                                      ^
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteControl.mm:74:31: warning: unused
parameter 'sender' [-Wunused-parameter]
- (void) startListening: (id) sender {
                              ^
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteControl.mm:79:30: warning: unused
parameter 'sender' [-Wunused-parameter]
- (void) stopListening: (id) sender {
                             ^
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteControl.mm:88:41: warning: unused
parameter 'value' [-Wunused-parameter]
- (void) setOpenInExclusiveMode: (BOOL) value {
                                        ^
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteControl.mm:91:72: warning: unused
parameter 'identifier' [-Wunused-parameter]
- (BOOL) sendsEventForButtonIdentifier: (RemoteControlEventIdentifier) identifier {
                                                                       ^
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteControlContainer.mm:85:44: warning:
unused parameter 'keyPath' [-Wunused-parameter]
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary
*)change context:(void *)context {
                                           ^
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteControlContainer.mm:85:65: warning:
unused parameter 'object' [-Wunused-parameter]
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary
*)change context:(void *)context {
                                                                ^
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteControlContainer.mm:85:95: warning:
unused parameter 'change' [-Wunused-parameter]
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary
*)change context:(void *)context {
                                                                                         
    ^
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteControlContainer.mm:85:118: warning:
unused parameter 'context' [-Wunused-parameter]
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary
*)change context:(void *)context {
                                                                                         
                           ^
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteControlContainer.mm:91:13: warning:
comparison of integers of different signs: 'int' and 'NSUInteger' (aka 'unsigned long') [-Wsign-compare]
        for(i=0; i < [remoteControls count]; i++) {
                 ~ ^ ~~~~~~~~~~~~~~~~~~~~~~
/Users/jim/src/asf/trunk/main/apple_remote/source/MultiClickRemoteBehavior.mm:70:83: error:
cannot initialize a parameter of type 'RemoteControlEventIdentifier' (aka '_RemoteControlEventIdentifier')
with an rvalue of type 'int'
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteControlContainer.mm:98:13: warning:
comparison of integers of different signs: 'int' and 'NSUInteger' (aka 'unsigned long') [-Wsign-compare]
       return [self simulateHoldEvent] && [remoteControl sendsEventForButtonIdentifier:
(identifier << EVENT_TO_HOLD_EVENT_OFFSET)]==NO;

                                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        for(i=0; i < [remoteControls count]; i++) {
                 ~ ^ ~~~~~~~~~~~~~~~~~~~~~~
/Users/jim/src/asf/trunk/main/apple_remote/inc/RemoteControl.h:101:72: note: passing argument
to parameter 'identifier' here
- (BOOL) sendsEventForButtonIdentifier: (RemoteControlEventIdentifier) identifier;
                                                                       ^
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteControlContainer.mm:111:13: warning:
comparison of integers of different signs: 'int' and 'NSUInteger' (aka 'unsigned long') [-Wsign-compare]
        for(i=0; i < [remoteControls count]; i++) {
                 ~ ^ ~~~~~~~~~~~~~~~~~~~~~~
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteControlContainer.mm:120:13: warning:
comparison of integers of different signs: 'int' and 'NSUInteger' (aka 'unsigned long') [-Wsign-compare]
        for(i=0; i < [remoteControls count]; i++) {
                 ~ ^ ~~~~~~~~~~~~~~~~~~~~~~
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteControlContainer.mm:128:13: warning:
comparison of integers of different signs: 'int' and 'NSUInteger' (aka 'unsigned long') [-Wsign-compare]
        for(i=0; i < [remoteControls count]; i++) {
                 ~ ^ ~~~~~~~~~~~~~~~~~~~~~~
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteControlContainer.mm:135:13: warning:
comparison of integers of different signs: 'int' and 'NSUInteger' (aka 'unsigned long') [-Wsign-compare]
        for(i=0; i < [remoteControls count]; i++) {
                 ~ ^ ~~~~~~~~~~~~~~~~~~~~~~
/Users/jim/src/asf/trunk/main/apple_remote/source/MultiClickRemoteBehavior.mm:106:11: error:
assigning to 'RemoteControlEventIdentifier' (aka '_RemoteControlEventIdentifier') from incompatible
type 'int'
                event = (event << EVENT_TO_HOLD_EVENT_OFFSET);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jim/src/asf/trunk/main/apple_remote/source/MultiClickRemoteBehavior.mm:112:31: error:
cannot initialize a variable of type 'RemoteControlEventIdentifier' (aka '_RemoteControlEventIdentifier')
with an rvalue of type 'unsigned int'
        RemoteControlEventIdentifier event = [[values objectAtIndex: 0] unsignedIntValue];

                                     ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jim/src/asf/trunk/main/apple_remote/source/MultiClickRemoteBehavior.mm:122:26: error:
assigning to 'RemoteControlEventIdentifier' (aka '_RemoteControlEventIdentifier') from incompatible
type 'int'
                        lastClickCountEvent = 0;
                                              ^
/Users/jim/src/asf/trunk/main/apple_remote/source/MultiClickRemoteBehavior.mm:153:13: error:
assigning to 'RemoteControlEventIdentifier' (aka '_RemoteControlEventIdentifier') from incompatible
type 'int'
                                event = (event << EVENT_TO_HOLD_EVENT_OFFSET);
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jim/src/asf/trunk/main/apple_remote/source/MultiClickRemoteBehavior.mm:154:21: error:
assigning to 'RemoteControlEventIdentifier' (aka '_RemoteControlEventIdentifier') from incompatible
type 'int'
                                lastHoldEvent = 0;
                                                ^
/Users/jim/src/asf/trunk/main/apple_remote/source/MultiClickRemoteBehavior.mm:162:22: error:
assigning to 'RemoteControlEventIdentifier' (aka '_RemoteControlEventIdentifier') from incompatible
type 'int'
                                        lastHoldEvent = 0;
                                                        ^
7 errors generated.
5 warnings generated.
10 warnings generated.
/Users/jim/src/asf/trunk/main/apple_remote/source/HIDRemoteControlDevice.mm:108:63: warning:
unused parameter 'cookieToButtonMapping' [-Wunused-parameter]
- (void) setCookieMappingInDictionary: (NSMutableDictionary*) cookieToButtonMapping {
                                                              ^
/Users/jim/src/asf/trunk/main/apple_remote/source/HIDRemoteControlDevice.mm:144:31: warning:
unused parameter 'sender' [-Wunused-parameter]
- (void) startListening: (id) sender {  
                              ^
/Users/jim/src/asf/trunk/main/apple_remote/source/GlobalKeyboardDevice.mm:143:31: warning:
unused parameter 'sender' [-Wunused-parameter]
- (void) startListening: (id) sender {
                              ^
/Users/jim/src/asf/trunk/main/apple_remote/source/GlobalKeyboardDevice.mm:156:30: warning:
unused parameter 'sender' [-Wunused-parameter]
- (void) stopListening: (id) sender {
                             ^
/Users/jim/src/asf/trunk/main/apple_remote/source/HIDRemoteControlDevice.mm:196:30: warning:
unused parameter 'sender' [-Wunused-parameter]
- (void) stopListening: (id) sender {
                             ^
/Users/jim/src/asf/trunk/main/apple_remote/source/GlobalKeyboardDevice.mm:218:9: error: cannot
initialize return object of type 'RemoteControlEventIdentifier' (aka '_RemoteControlEventIdentifier')
with an rvalue of type 'unsigned int'
        return [remoteEventIdentifier unsignedIntValue];
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jim/src/asf/trunk/main/apple_remote/source/GlobalKeyboardDevice.mm:241:15: error: assigning
to 'RemoteControlEventIdentifier' (aka '_RemoteControlEventIdentifier') from incompatible
type 'int'
                lastEvent = 0;
                            ^
/Users/jim/src/asf/trunk/main/apple_remote/source/GlobalKeyboardDevice.mm:228:56: warning:
unused parameter 'inHandlerRef' [-Wunused-parameter]
static OSStatus hotKeyEventHandler(EventHandlerCallRef inHandlerRef, EventRef inEvent, void*
userData )
                                                       ^
3 warnings and 2 errors generated.
/Users/jim/src/asf/trunk/main/apple_remote/source/HIDRemoteControlDevice.mm:284:15: error:
cast from pointer to smaller type 'int' loses information
            switch ( (int)buttonId )
                     ^~~~~~~~~~~~~
/Users/jim/src/asf/trunk/main/apple_remote/source/HIDRemoteControlDevice.mm:293:35: error:
cannot initialize a parameter of type 'RemoteControlEventIdentifier' (aka '_RemoteControlEventIdentifier')
with an rvalue of type 'int'
            [self sendRemoteButtonEvent: [buttonId intValue] pressedDown: (sumOfValues>0)];
                                         ^~~~~~~~~~~~~~~~~~~
/Users/jim/src/asf/trunk/main/apple_remote/inc/HIDRemoteControlDevice.h:63:64: note: passing
argument to parameter 'event' here
- (void) sendRemoteButtonEvent: (RemoteControlEventIdentifier) event pressedDown: (BOOL) pressedDown;
                                                               ^
/Users/jim/src/asf/trunk/main/apple_remote/source/HIDRemoteControlDevice.mm:322:51: warning:
unused parameter 'notification' [-Wunused-parameter]
- (void) remoteControlAvailable:(NSNotification *)notification {
                                                  ^
/Users/jim/src/asf/trunk/main/apple_remote/source/HIDRemoteControlDevice.mm:333:13: error:
ordered comparison between pointer and zero ('void *' and 'int')
        if (target < 0) {
            ~~~~~~ ^ ~
/Users/jim/src/asf/trunk/main/apple_remote/source/HIDRemoteControlDevice.mm:332:73: warning:
unused parameter 'refcon' [-Wunused-parameter]
static void QueueCallbackFunction(void* target,  IOReturn result, void* refcon, void* sender)
{ 
                                                                        ^
/Users/jim/src/asf/trunk/main/apple_remote/source/HIDRemoteControlDevice.mm:332:87: warning:
unused parameter 'sender' [-Wunused-parameter]
static void QueueCallbackFunction(void* target,  IOReturn result, void* refcon, void* sender)
{ 
                                                                                      ^
/Users/jim/src/asf/trunk/main/apple_remote/source/HIDRemoteControlDevice.mm:388:115: error:
cannot initialize a parameter of type 'LPVOID *' (aka 'void **') with an rvalue of type 'LPVOID'
(aka 'void *')
                plugInResult = (*plugInInterface)->QueryInterface(plugInInterface, CFUUIDGetUUIDBytes(kIOHIDDeviceInterfaceID),
(LPVOID) &hidDeviceInterface);
                                                                                         
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 warnings and 4 errors generated.
make: *** No rule to make target '/Users/jim/src/asf/trunk/main/solver/450/unxmaccx.pro/workdir/ObjCxxObject/apple_remote/source/GlobalKeyboardDevice.o',
needed by '/Users/jim/src/asf/trunk/main/solver/450/unxmaccx.pro/workdir/LinkTarget/Library/libAppleRemote.dylib'.
 Stop.
make: *** Waiting for unfinished jobs....
/Users/jim/src/asf/trunk/main/apple_remote/source/RemoteMainController.mm:100:129: warning:
unused parameter 'clickCount' [-Wunused-parameter]
- (void) remoteButton: (RemoteControlEventIdentifier)buttonIdentifier pressedDown: (BOOL)
pressedDown clickCount: (unsigned int)clickCount
                                                                                         
                                      ^
1 warning generated.
dmake:  Error code 2, while making 'all'

1 module(s): 
	apple_remote
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making /Users/jim/src/asf/trunk/main/apple_remote/prj

When you have fixed the errors in that module you can resume the build by running:

	build --all:apple_remote



> On Feb 19, 2019, at 12:05 PM, Damjan Jovanovic <damjan@apache.org> wrote:
> 
> I think .m files are Objective C, and gb_Library_add_objcxxobjects wants
> Objective C++'s .mm.
> 
> I am completely unfamiliar with both languages.
> 
> Please try renaming apple_remote/source/*.m to *.mm and see if it works? If
> not, I'll have to make a gb_Library_add_objcobjects API instead.
> 
> 
> On Tue, Feb 19, 2019 at 5:02 PM Jim Jagielski <jim@jagunet.com> wrote:
> 
>> Nope... that wasn't it. Even with a complete fresh-from-scratch build, I
>> get the same error.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
>> For additional commands, e-mail: dev-help@openoffice.apache.org
>> 
>> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message