- **Milestone**: 5.19.07 --> future


---

** [tickets:#2449] osaf: Avoid conditional compilation when possible**

**Status:** assigned
**Milestone:** future
**Created:** Wed May 03, 2017 10:35 AM UTC by Anders Widell
**Last Updated:** Wed Jul 03, 2019 06:28 AM UTC
**Owner:** Anders Widell


Related to ticket [#2448]. OpenSAF currently has a number of C preprocessor 
macros that control conditional compilation using #ifdef in the source code. 
This has a number of problems:

* It makes testing more complex - we need to create one OpenSAF build for each 
possible combination of enabled/disabled macros and test each build.
* ifdefs can confuse static code analysis tools - and humans as well.
* This can make it impossible to choose at installation time which OpenSAF RPMs 
to install on the system, see ticket [#2448].

This ticket suggests that conditional compilation shall be removed when 
possible. One possible exception could be an OSAF_ENABLE_DEBUG macro that can 
create a separate debug build of OpenSAF. A debug build has some benefits for 
testing and trouble shooting but shouldn't be installed on a production system.


---

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.
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to