Closed osrf-migration closed 9 years ago
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
@nkoenig stackoverflow recommends ifdef
's (I think this is what you did):
#ifdef _MSC_VER
#pragma warning( push )
#pragma warning( once: ThatWarning )
#endif
//code with ThatWarning here
#ifdef _MSC_VER
#pragma warning( pop )
#endif
Original comment by Nate Koenig (Bitbucket: Nathan Koenig).
Yes, that is what I did. I agree that it's ugly, but it's no more ugly than the existing pragmas. We should put in those changes, otherwise it's difficult to find compiler errors.
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
Original comment by Carlos Agüero (Bitbucket: caguero, GitHub: caguero).
Fixed in pull request #32
Original report (archived issue) by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
When building
haptix_comm
, I get a lot of warnings about some unknown pragmas: