---

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

**Status:** assigned
**Milestone:** 5.17.08
**Created:** Wed May 03, 2017 10:35 AM UTC by Anders Widell
**Last Updated:** Wed May 03, 2017 10:35 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 opensaf-tickets@lists.sourceforge.net 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.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to