add logging support for macro definitions
clean up compiler warning
suppress warning in testing code
update code to suppress warnings