SFML community forums

Help => Window => Topic started by: for_science on June 11, 2011, 12:18:31 pm

Title: sfml2 GlxContext warning
Post by: for_science on June 11, 2011, 12:18:31 pm
When compiling sfml2 on linux I get the following "Warning:"

[...]/SFML/src/SFML/Window/Linux/GlxContext.cpp: In constructor ‘sf::priv::GlxContext::GlxContext(sf::priv::GlxContext*, const sf::ContextSettings&, unsigned int, unsigned int)’:
[...]/SFML/src/SFML/Window/Linux/GlxContext.cpp:88:18: warning: converting to non-pointer type ‘Window’ from NULL

In the GlxContex constructor, there is a "myWindow(NULL)" [line 86] while the other constructors use "myWindow(0)" [compare line 68]. Replacing the "NULL" by "0" fixes the warning for me. (Is there a need to have the myWindow object initialized to 0 at all? It is not a pointer and seems to be defined in all the other constructors.)

I am aware that this is a *very* minor issue. I just felt like reporting it, since it should also be a quick fix. :wink:

[EDIT]
BTW, I just realized that this is actually a *Help* Forum, is there a venue more appropriate to post these kinds of issues? (sorry about that)
[/EDIT]

cheers
Title: sfml2 GlxContext warning
Post by: Laurent on June 11, 2011, 06:53:05 pm
It's fixed, thanks :)

Quote
BTW, I just realized that this is actually a *Help* Forum, is there a venue more appropriate to post these kinds of issues? (sorry about that)

It's ok on this forum.