I second BrewBeemer's comment. I work for a mechanical engineering firm and that is something we need to look out for in our designs.
Having said that, if it happens to be a sealed-combustion water heater, you won't have a problem. Are there two pipes going through the roof with one of them...