changeset:   4751:3277c773f609
branch:      opensaf-4.2.x
parent:      4724:3b1947ce0a23
user:        Anders Widell <[email protected]>
date:        Thu Dec 19 16:34:32 2013 +0100
summary:     java: Fix compiler warnings and treat warnings as errors [#649]

changeset:   4752:bb00faa2f8bd
branch:      opensaf-4.3.x
parent:      4725:8e6eb9c7be60
user:        Anders Widell <[email protected]>
date:        Thu Dec 19 16:34:32 2013 +0100
summary:     java: Fix compiler warnings and treat warnings as errors [#649]

changeset:   4753:47adb85b7748
parent:      4750:85a453678667
user:        Anders Widell <[email protected]>
date:        Thu Dec 19 16:34:32 2013 +0100
summary:     java: Fix compiler warnings and treat warnings as errors [#649]

[staging:3277c7]
[staging:bb00fa]
[staging:47adb8]



---

** [tickets:#649] java: Java bindings produce GCC warnings**

**Status:** fixed
**Created:** Fri Dec 06, 2013 11:18 AM UTC by Anders Widell
**Last Updated:** Thu Dec 12, 2013 03:53 PM UTC
**Owner:** Anders Widell

The java bindings produce GCC compiler warnings. Also, the makefile does not 
include the OpenSAF common makefile, so warnings are not treated as errors. Two 
of the warnings are actual bugs: the parameter type mismatch detected by GCC is 
caused by calling the wrong function.

        ../../java/ais_api_impl_native/j_ais_socketUtil.c: In function 
‘Java_org_opensaf_ais_SelectionObjectMediator_00024Worker_doSelect’:
        ../../java/ais_api_impl_native/j_ais_socketUtil.c:138:12: error: 
variable ‘rfds_copy’ set but not used [-Werror=unused-but-set-variable]
        cc1: all warnings being treated as errors
        make[1]: *** [libjava_ais_api_native_la-j_ais_socketUtil.lo] Error 1
          CC     libjava_ais_api_native_la-j_utils.lo
        ../../java/ais_api_impl_native/j_utils.c: In function ‘JNI_OnLoad’:
        ../../java/ais_api_impl_native/j_utils.c:280:5: error: implicit 
declaration of function ‘JNU_ProcessMonitoring_initIDs_OK’ 
[-Werror=implicit-function-declaration]
        ../../java/ais_api_impl_native/j_utils.c: In function 
‘JNU_GetStringNativeChars’:
        ../../java/ais_api_impl_native/j_utils.c:398:9: error: implicit 
declaration of function ‘malloc’ [-Werror=implicit-function-declaration]
        ../../java/ais_api_impl_native/j_utils.c:398:26: error: incompatible 
implicit declaration of built-in function ‘malloc’ [-Werror]
        ../../java/ais_api_impl_native/j_utils.c:401:13: error: implicit 
declaration of function ‘JNU_ThrowByName’ 
[-Werror=implicit-function-declaration]
        cc1: all warnings being treated as errors
        make[1]: *** [libjava_ais_api_native_la-j_utils.lo] Error 1
          CC     libjava_ais_api_native_la-j_utilsPrint.lo
        ../../java/ais_api_impl_native/j_utilsPrint.c: In function 
‘U_printSaClusterNotificationBuffer_4’:
        ../../java/ais_api_impl_native/j_utilsPrint.c:211:9: error: passing 
argument 2 of ‘U_printSaClusterNotification’ from incompatible pointer type 
[-Werror]
        ../../java/ais_api_impl_native/j_utilsPrint.h:69:6: note: expected 
‘const struct SaClmClusterNotificationT *’ but argument is of type ‘struct 
SaClmClusterNotificationT_4 * const’
        ../../java/ais_api_impl_native/j_utilsPrint.c: In function 
‘U_printSaClusterNotification_4’:
        ../../java/ais_api_impl_native/j_utilsPrint.c:253:5: error: passing 
argument 2 of ‘U_printSaClusterNode’ from incompatible pointer type [-Werror]
        ../../java/ais_api_impl_native/j_utilsPrint.h:75:6: note: expected 
‘const struct SaClmClusterNodeT *’ but argument is of type ‘const struct 
SaClmClusterNodeT_4 *’
        cc1: all warnings being treated as errors
        make[1]: *** [libjava_ais_api_native_la-j_utilsPrint.lo] Error 1
          CC     libjava_ais_api_native_la-tracer.lo
        make[1]: Target `all' not remade because of errors.



---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to