Skip to content

Commit

Permalink
Backport from 6 to 3 (#707)
Browse files Browse the repository at this point in the history
Signed-off-by: Crola1702 <[email protected]>

Signed-off-by: Crola1702 <[email protected]>
Co-authored-by: Ian Chen <[email protected]>
  • Loading branch information
Crola1702 and iche033 authored Aug 16, 2022
1 parent d82ba31 commit 84724f5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ogre/include/ignition/rendering/ogre/OgreIncludes.hh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#pragma GCC system_header
#else
#pragma warning(push, 0)
#pragma warning(disable:4275)
#pragma warning(disable:4005)
#endif

// This prevents some deprecation #warning messages on OSX 10.9
Expand Down
2 changes: 2 additions & 0 deletions ogre/src/OgreRenderTarget.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
# pragma GCC diagnostic ignored "-Wunused-parameter"
#else
# pragma warning(push, 0)
# pragma warning(disable: 4005)
# pragma warning(disable: 4275)
#endif
// leave this out of OgreIncludes as it conflicts with other files requiring
// gl.h
Expand Down
4 changes: 2 additions & 2 deletions ogre2/src/Ogre2RenderEngine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void Ogre2RenderEngine::Destroy()
delete this->ogreLogManager;
this->ogreLogManager = nullptr;

#if not (__APPLE__ || _WIN32)
#if !defined(__APPLE__) && !defined(_WIN32)
if (this->dummyDisplay)
{
Display *x11Display = static_cast<Display*>(this->dummyDisplay);
Expand Down Expand Up @@ -328,7 +328,7 @@ void Ogre2RenderEngine::CreateLogger()
//////////////////////////////////////////////////
void Ogre2RenderEngine::CreateContext()
{
#if not (__APPLE__ || _WIN32)
#if !defined(__APPLE__) && !defined(_WIN32)
// create X11 display
this->dummyDisplay = XOpenDisplay(0);
Display *x11Display = static_cast<Display*>(this->dummyDisplay);
Expand Down
7 changes: 7 additions & 0 deletions ogre2/src/Ogre2RenderTarget.cc
Original file line number Diff line number Diff line change
Expand Up @@ -764,9 +764,16 @@ void Ogre2RenderTarget::RebuildMaterial()
//////////////////////////////////////////////////
// Ogre2RenderTexture
//////////////////////////////////////////////////
#ifndef _WIN32
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
Ogre2RenderTexture::Ogre2RenderTexture()
{
}
#ifndef _WIN32
#pragma GCC diagnostic pop
#endif

//////////////////////////////////////////////////
Ogre2RenderTexture::~Ogre2RenderTexture()
Expand Down

0 comments on commit 84724f5

Please sign in to comment.