From: Jihoon Jung Date: Mon, 14 Mar 2016 10:53:42 +0000 (+0900) Subject: Remove warning code X-Git-Tag: accepted/tizen/common/20160314.164729^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4d3063f337241b04098b272993ce57fe60a3403;p=platform%2Fcore%2Fconnectivity%2Fsmartcard-service.git Remove warning code Change-Id: Ia6c709e0cd9acd97c25a650b1dc9af2d55b655ef Signed-off-by: Jihoon Jung --- diff --git a/server/ServerSession.cpp b/server/ServerSession.cpp old mode 100644 new mode 100755 index 6a2df89..4f0e93e --- a/server/ServerSession.cpp +++ b/server/ServerSession.cpp @@ -203,14 +203,14 @@ namespace smartcard_service_api Channel *ServerSession::openLogicalChannelSync(const ByteArray &aid) throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &) { - void* caller; + void* caller = NULL; return openLogicalChannelSync(aid, caller); } Channel *ServerSession::openLogicalChannelSync(const ByteArray &aid, unsigned char P2) throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &) { - void* caller; + void* caller = NULL; return openLogicalChannelSync(aid, caller); } diff --git a/server/smartcard-daemon.cpp b/server/smartcard-daemon.cpp old mode 100644 new mode 100755 index 3c2890a..cb9c75f --- a/server/smartcard-daemon.cpp +++ b/server/smartcard-daemon.cpp @@ -123,12 +123,6 @@ int main(int argc, char *argv[]) daemonize(); #endif - if (!g_thread_supported()) { - g_thread_init(NULL); - } - - g_type_init(); - main_loop = g_main_new(TRUE); id = g_bus_own_name(G_BUS_TYPE_SYSTEM,