- **status**: review --> fixed
- **Comment**:
changeset: 7733:29f02d302d4b
user: Anders Widell <[email protected]>
date: Tue Jun 21 14:50:33 2016 +0200
summary: rde: Fix cppcheck warnings [#1870]
[staging:29f02d]
---
** [tickets:#1870] rde: Fix cppcheck warnings**
**Status:** fixed
**Milestone:** 5.1.FC
**Created:** Thu Jun 09, 2016 08:26 AM UTC by Anders Widell
**Last Updated:** Thu Jun 09, 2016 10:30 AM UTC
**Owner:** Anders Widell
cppcheck version 1.74 reports the following warnings in the RDE service:
Line | Id | CWE | Severity | Message
---------- | ---------- | ------ | ------ | ------
osaf/libs/agents/infrastructure/rda/rda_papi.cc
300 | cstyleCast | 398 | style | C-style pointer casting
347 | redundantAssignment | 563 | style | Variable 'rc' is reassigned a value
before the old one has been used.
410 | redundantAssignment | 563 | style | Variable 'rc' is reassigned a value
before the old one has been used.
516 | pointerLessThanZero | 570 | style | A pointer can not be negative so it
is either pointless or an error to check if it is.
585 | redundantAssignment | 563 | style | Variable 'rc' is reassigned a value
before the old one has been used.
osaf/services/infrastructure/rde/include/role.h
34 | noExplicitConstructor | | style | Class 'Role' has a constructor with 1
argument that is not explicit.
osaf/services/infrastructure/rde/rde_mds.cc
240 | redundantAssignment | 563 | style | Variable 'rc' is reassigned a value
before the old one has been used.
osaf/services/infrastructure/rde/rde_rda.cc
374 | redundantAssignment | 563 | style | Variable 'sockfd' is reassigned a
value before the old one has been used.
417 | unusedFunction | | style | The function 'rde_rda_sock_name' is never
used.
473 | unusedFunction | | style | The function 'rde_rda_close' is never used.
osaf/tools/rde/rde_get_role.c
38 | redundantAssignment | 563 | style | Variable 'ret_val' is reassigned a
value before the old one has been used.
---
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.
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets