{"action":"opened","issue":{"url":"https://api.github.com/repos/HerbertKoelman/cpp-atmi/issues/59","repository_url":"https://api.github.com/repos/HerbertKoelman/cpp-atmi","labels_url":"https://api.github.com/repos/HerbertKoelman/cpp-atmi/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/HerbertKoelman/cpp-atmi/issues/59/comments","events_url":"https://api.github.com/repos/HerbertKoelman/cpp-atmi/issues/59/events","html_url":"https://github.com/HerbertKoelman/cpp-atmi/issues/59","id":161567950,"number":59,"title":"cppcheck repport","user":{"login":"HerbertKoelman","id":2906905,"avatar_url":"https://avatars.githubusercontent.com/u/2906905?v=3","gravatar_id":"","url":"https://api.github.com/users/HerbertKoelman","html_url":"https://github.com/HerbertKoelman","followers_url":"https://api.github.com/users/HerbertKoelman/followers","following_url":"https://api.github.com/users/HerbertKoelman/following{/other_user}","gists_url":"https://api.github.com/users/HerbertKoelman/gists{/gist_id}","starred_url":"https://api.github.com/users/HerbertKoelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HerbertKoelman/subscriptions","organizations_url":"https://api.github.com/users/HerbertKoelman/orgs","repos_url":"https://api.github.com/users/HerbertKoelman/repos","events_url":"https://api.github.com/users/HerbertKoelman/events{/privacy}","received_events_url":"https://api.github.com/users/HerbertKoelman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HerbertKoelman/cpp-atmi/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"HerbertKoelman","id":2906905,"avatar_url":"https://avatars.githubusercontent.com/u/2906905?v=3","gravatar_id":"","url":"https://api.github.com/users/HerbertKoelman","html_url":"https://github.com/HerbertKoelman","followers_url":"https://api.github.com/users/HerbertKoelman/followers","following_url":"https://api.github.com/users/HerbertKoelman/following{/other_user}","gists_url":"https://api.github.com/users/HerbertKoelman/gists{/gist_id}","starred_url":"https://api.github.com/users/HerbertKoelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HerbertKoelman/subscriptions","organizations_url":"https://api.github.com/users/HerbertKoelman/orgs","repos_url":"https://api.github.com/users/HerbertKoelman/repos","events_url":"https://api.github.com/users/HerbertKoelman/events{/privacy}","received_events_url":"https://api.github.com/users/HerbertKoelman/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/HerbertKoelman/cpp-atmi/milestones/5","html_url":"https://github.com/HerbertKoelman/cpp-atmi/milestones/v3.2.1","labels_url":"https://api.github.com/repos/HerbertKoelman/cpp-atmi/milestones/5/labels","id":1821588,"number":5,"title":"v3.2.1","description":"Bug fixes","creator":{"login":"HerbertKoelman","id":2906905,"avatar_url":"https://avatars.githubusercontent.com/u/2906905?v=3","gravatar_id":"","url":"https://api.github.com/users/HerbertKoelman","html_url":"https://github.com/HerbertKoelman","followers_url":"https://api.github.com/users/HerbertKoelman/followers","following_url":"https://api.github.com/users/HerbertKoelman/following{/other_user}","gists_url":"https://api.github.com/users/HerbertKoelman/gists{/gist_id}","starred_url":"https://api.github.com/users/HerbertKoelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HerbertKoelman/subscriptions","organizations_url":"https://api.github.com/users/HerbertKoelman/orgs","repos_url":"https://api.github.com/users/HerbertKoelman/repos","events_url":"https://api.github.com/users/HerbertKoelman/events{/privacy}","received_events_url":"https://api.github.com/users/HerbertKoelman/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2016-06-11T16:46:45Z","updated_at":"2016-06-22T00:12:03Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-06-22T00:12:03Z","updated_at":"2016-06-22T00:12:03Z","closed_at":null,"body":"```\r\ncppcheck --template='{file}:{line},{severity},{id}:\\n    {message}\\n' --enable=all -I include ./src\r\nChecking src/abstract_client.cpp...\r\ninclude/atmi/buffers.hpp:468,style,redundantAssignment:\r\n    Variable 'rc' is reassigned a value before the old one has been used.\r\n\r\ninclude/atmi/buffers.hpp:508,style,redundantAssignment:\r\n    Variable 'rc' is reassigned a value before the old one has been used.\r\n\r\ninclude/atmi/buffers.hpp:702,style,redundantAssignment:\r\n    Variable 'rc' is reassigned a value before the old one has been used.\r\n\r\ninclude/atmi/buffers.hpp:857,style,redundantAssignment:\r\n    Variable 'rc' is reassigned a value before the old one has been used.\r\n\r\ninclude/atmi/buffers.hpp:239,style,noConstructor:\r\n    The class 'field' does not have a constructor.\r\n\r\ninclude/atmi/tuxedo.hpp:327,warning,duplInheritedMember:\r\n    The class 'queue_stream' defines member variable with name '_flags' also defined in its parent class 'tuxedo'.\r\n\r\ninclude/atmi/logger.hpp:136,style,noExplicitConstructor:\r\n    Class 'ulog_logger' has a constructor with 1 argument that is not explicit.\r\n\r\ninclude/atmi/tuxedo.hpp:780,style,noExplicitConstructor:\r\n    Class 'event' has a constructor with 1 argument that is not explicit.\r\n\r\ninclude/atmi/tuxedo.hpp:815,style,noExplicitConstructor:\r\n    Class 'queue_stream' has a constructor with 1 argument that is not explicit.\r\n\r\ninclude/atmi/buffers.hpp:390,style,noExplicitConstructor:\r\n    Class 'Tfield' has a constructor with 1 argument that is not explicit.\r\n\r\ninclude/atmi/buffers.hpp:417,style,noExplicitConstructor:\r\n    Class 'Tfield' has a constructor with 1 argument that is not explicit.\r\n\r\nChecking src/abstract_client.cpp: HAVE_CPP11_MUTEX...\r\n1/14 files checked 7% done\r\nChecking src/abstract_server.cpp...\r\nChecking src/abstract_server.cpp: HAVE_CPP11_MUTEX...\r\n2/14 files checked 14% done\r\nChecking src/atmi++.cpp...\r\nChecking src/atmi++.cpp: HAVE_CPP11_MUTEX...\r\n3/14 files checked 21% done\r\nChecking src/buffer.cpp...\r\nsrc/buffer.cpp:228,style,redundantAssignment:\r\n    Variable 'rc' is reassigned a value before the old one has been used.\r\n\r\nChecking src/buffer.cpp: HAVE_CPP11_MUTEX...\r\n4/14 files checked 28% done\r\nChecking src/event.cpp...\r\nChecking src/event.cpp: HAVE_CPP11_MUTEX...\r\n5/14 files checked 35% done\r\nChecking src/exceptions.cpp...\r\nChecking src/exceptions.cpp: HAVE_CPP11_MUTEX...\r\n6/14 files checked 42% done\r\nChecking src/field.cpp...\r\nsrc/field.cpp:60,error,stlcstr:\r\n    Dangerous usage of c_str(). The value returned by c_str() is invalid after this call.\r\n\r\nsrc/field.cpp:105,error,va_end_missing:\r\n    va_list 'ap' was opened but not closed by va_end().\r\n\r\nChecking src/field.cpp: HAVE_CPP11_MUTEX...\r\n7/14 files checked 50% done\r\nChecking src/logger.cpp...\r\n8/14 files checked 57% done\r\nChecking src/queue.cpp...\r\nsrc/queue.cpp:97,style,redundantAssignment:\r\n    Variable 'rc' is reassigned a value before the old one has been used.\r\n\r\nsrc/queue.cpp:173,style,redundantAssignment:\r\n    Variable 'rc' is reassigned a value before the old one has been used.\r\n\r\nChecking src/queue.cpp: HAVE_CPP11_MUTEX...\r\n9/14 files checked 64% done\r\nChecking src/queue_stream.cpp...\r\nsrc/queue_stream.cpp:51,style,variableScope:\r\n    The scope of the variable 'rc' can be reduced.\r\n\r\nsrc/queue_stream.cpp:122,style,variableScope:\r\n    The scope of the variable 'rc' can be reduced.\r\n\r\nsrc/queue_stream.cpp:84,error,mismatchAllocDealloc:\r\n    Mismatching allocation and deallocation: buffer\r\n\r\nsrc/queue_stream.cpp:85,error,mismatchAllocDealloc:\r\n    Mismatching allocation and deallocation: buffer\r\n\r\nsrc/queue_stream.cpp:108,error,mismatchAllocDealloc:\r\n    Mismatching allocation and deallocation: buffer\r\n\r\nsrc/queue_stream.cpp:113,error,mismatchAllocDealloc:\r\n    Mismatching allocation and deallocation: buffer\r\n\r\nChecking src/queue_stream.cpp: HAVE_CPP11_MUTEX...\r\n10/14 files checked 71% done\r\nChecking src/standard_logger.cpp...\r\n11/14 files checked 78% done\r\nChecking src/transaction.cpp...\r\nsrc/transaction.cpp:37,style,redundantAssignment:\r\n    Variable 'rc' is reassigned a value before the old one has been used.\r\n\r\nsrc/transaction.cpp:68,style,redundantAssignment:\r\n    Variable 'rc' is reassigned a value before the old one has been used.\r\n\r\nsrc/transaction.cpp:78,style,redundantAssignment:\r\n    Variable 'rc' is reassigned a value before the old one has been used.\r\n\r\nsrc/transaction.cpp:88,style,redundantAssignment:\r\n    Variable 'ret' is reassigned a value before the old one has been used.\r\n\r\nsrc/transaction.cpp:108,style,redundantAssignment:\r\n    Variable 'rc' is reassigned a value before the old one has been used.\r\n\r\nsrc/transaction.cpp:124,style,redundantAssignment:\r\n    Variable 'ret' is reassigned a value before the old one has been used.\r\n\r\nChecking src/transaction.cpp: HAVE_CPP11_MUTEX...\r\n12/14 files checked 85% done\r\nChecking src/tuxedo.cpp...\r\nsrc/tuxedo.cpp:75,style,redundantAssignment:\r\n    Variable 'rc' is reassigned a value before the old one has been used.\r\n\r\nsrc/tuxedo.cpp:90,style,redundantAssignment:\r\n    Variable 'rc' is reassigned a value before the old one has been used.\r\n\r\nsrc/tuxedo.cpp:105,style,redundantAssignment:\r\n    Variable 'rc' is reassigned a value before the old one has been used.\r\n\r\nsrc/tuxedo.cpp:119,style,variableScope:\r\n    The scope of the variable 'rc' can be reduced.\r\n\r\nChecking src/tuxedo.cpp: HAVE_CPP11_MUTEX...\r\n13/14 files checked 92% done\r\nChecking src/ulog_logger.cpp...\r\n14/14 files checked 100% done\r\nsrc/buffer.cpp:97,style,unusedFunction:\r\n    The function 'append' is never used.\r\n\r\nsrc/transaction.cpp:159,style,unusedFunction:\r\n    The function 'cancel' is never used.\r\n\r\nsrc/atmi++.cpp:28,style,unusedFunction:\r\n    The function 'cpp_atmi_version' is never used.\r\n\r\nsrc/logger.cpp:94,style,unusedFunction:\r\n    The function 'debug' is never used.\r\n\r\nsrc/exceptions.cpp:63,style,unusedFunction:\r\n    The function 'error_detail' is never used.\r\n\r\nsrc/field.cpp:97,style,unusedFunction:\r\n    The function 'ferror_handler' is never used.\r\n\r\nsrc/logger.cpp:81,style,unusedFunction:\r\n    The function 'finer' is never used.\r\n\r\nsrc/logger.cpp:69,style,unusedFunction:\r\n    The function 'info' is never used.\r\n\r\nsrc/buffer.cpp:186,style,unusedFunction:\r\n    The function 'is_handling_memory' is never used.\r\n\r\nsrc/abstract_client.cpp:134,style,unusedFunction:\r\n    The function 'new_queue_instance' is never used.\r\n\r\nsrc/abstract_client.cpp:121,style,unusedFunction:\r\n    The function 'new_transaction_instance' is never used.\r\n\r\nsrc/buffer.cpp:176,style,unusedFunction:\r\n    The function 'num' is never used.\r\n\r\nsrc/field.cpp:33,style,unusedFunction:\r\n    The function 'number' is never used.\r\n\r\nsrc/buffer.cpp:81,style,unusedFunction:\r\n    The function 'pack' is never used.\r\n\r\nsrc/event.cpp:22,style,unusedFunction:\r\n    The function 'post' is never used.\r\n\r\nsrc/buffer.cpp:181,style,unusedFunction:\r\n    The function 'print' is never used.\r\n\r\nsrc/queue.cpp:191,style,unusedFunction:\r\n    The function 'reply_queue' is never used.\r\n\r\nsrc/buffer.cpp:190,style,unusedFunction:\r\n    The function 'set_handling_memory' is never used.\r\n\r\nsrc/queue.cpp:235,style,unusedFunction:\r\n    The function 'set_new_corrid' is never used.\r\n\r\nsrc/abstract_server.cpp:43,style,unusedFunction:\r\n    The function 'tpsvrthrdone' is never used.\r\n\r\nsrc/abstract_server.cpp:47,style,unusedFunction:\r\n    The function 'tpsvrthrinit' is never used.\r\n\r\nsrc/queue.cpp:247,style,unusedFunction:\r\n    The function 'unset_corrid' is never used.\r\n\r\nsrc/buffer.cpp:162,style,unusedFunction:\r\n    The function 'unused' is never used.\r\n\r\nsrc/logger.cpp:57,style,unusedFunction:\r\n    The function 'warning' is never used.\r\n\r\n:,information,missingIncludeSystem:\r\n    Cppcheck cannot find all the include files (use --check-config for details)\r\n```"}}
{"actor":{"display_login":"HerbertKoelman"}}