You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2020/05/30 18:34:50 UTC

[GitHub] [geode-native] moleske opened a new pull request #608: GEODE-8207: Enfore No Unknown Pragmas as Error

moleske opened a new pull request #608:
URL: https://github.com/apache/geode-native/pull/608


   I just used `__sun` and `_MSC_VER` as the check.  Worked for Windows, Mac, and Kubuntu 20.04.  Don't have a Sun based setup to test that one.  I checked the box for "Allow edits by maintainers" so just push up anything you might discover.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [geode-native] moleske commented on pull request #608: GEODE-8207: Enfore No Unknown Pragmas as Error

Posted by GitBox <gi...@apache.org>.
moleske commented on pull request #608:
URL: https://github.com/apache/geode-native/pull/608#issuecomment-639911919


   @pivotal-jbarrett I switched to definitions in config.h, but also spent a little time trying to figure out the correct way in cmake to detect those pragmas.  I didn't succeed in the latter, kept ending up in docs for checking compiler flags.  The closest I hit to was `get_target_property` but couldn't figure out what target or property I'd really be looking for.  If you have thoughts on detection, I can take another try at using cmake to determine if those pragmas exist (as long as folks don't mind waiting a week in between my attempts based on my current schedule)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [geode-native] pivotal-jbarrett commented on pull request #608: GEODE-8207: Enfore No Unknown Pragmas as Error

Posted by GitBox <gi...@apache.org>.
pivotal-jbarrett commented on pull request #608:
URL: https://github.com/apache/geode-native/pull/608#issuecomment-640794162


   > I switched to definitions in config.h
   
   I forgot that those were unprefixed definitions in there. We should fix that some day so they don't collide with others.
   
   > but also spent a little time trying to figure out the correct way in cmake to detect those pragmas. I didn't succeed in the latter, kept ending up in docs for checking compiler flags. The closest I hit to was `get_target_property` but couldn't figure out what target or property I'd really be looking for. If you have thoughts on detection, I can take another try at using cmake to determine if those pragmas exist (as long as folks don't mind waiting a week in between my attempts based on my current schedule)
   
   I believe you want to use `check_cxx_source_compiles`.
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [geode-native] pdxcodemonkey merged pull request #608: GEODE-8207: Enfore No Unknown Pragmas as Error

Posted by GitBox <gi...@apache.org>.
pdxcodemonkey merged pull request #608:
URL: https://github.com/apache/geode-native/pull/608


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org