Fluid warnings on (older) macOS build...

14 views
Skip to first unread message

imacarthur

unread,
Nov 26, 2022, 11:49:41 AM11/26/22
to fltk.coredev
I was having a look at the build logs from my Mac and I'm seeing a lot of this:

[ 50%] Building CXX object fluid/CMakeFiles/fluid.dir/Fl_Window_Type.cxx.o

In file included from /Users/ian/src/Git/fltk-1.4/fluid/Fl_Window_Type.cxx:24:

/Users/ian/src/Git/fltk-1.4/fluid/fluid.h:113:23: warning: in-class initialization of non-static data member is a C++11

      extension [-Wc++11-extensions]

  int header_file_set = 0;

                      ^

/Users/ian/src/Git/fltk-1.4/fluid/fluid.h:114:21: warning: in-class initialization of non-static data member is a C++11

      extension [-Wc++11-extensions]

  int code_file_set = 0;

                    ^

2 warnings generated.

which I do not remember seeing before - seems like a new warning?

Also this:

[ 91%] Building CXX object examples/CMakeFiles/OpenGL3test.dir/OpenGL3test.cxx.o

In file included from /Users/ian/src/Git/fltk-1.4/examples/OpenGL3test.cxx:33:

In file included from /Users/ian/src/Git/fltk-1.4/FL/gl.h:58:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:5:2: warning: 

      gl.h and gl3.h are both included. Compiler will not invoke errors if using removed OpenGL functionality. [-W#warnings]

#warning gl.h and gl3.h are both included.  Compiler will not invoke errors if using removed OpenGL functionality.

 ^

1 warning generated.

which again looks new to me (though TBH I do not check these logs often enough, so...)




melcher....@googlemail.com

unread,
Nov 26, 2022, 1:12:41 PM11/26/22
to fltk.coredev
imacarthur schrieb am Samstag, 26. November 2022 um 17:49:41 UTC+1:
I was having a look at the build logs from my Mac and I'm seeing a lot of this:
/Users/ian/src/Git/fltk-1.4/fluid/fluid.h:113:23: warning: in-class initialization of non-static data member is a C++11

which I do not remember seeing before - seems like a new warning?

Ah, thanks. I fixed those two. Are there more?

Also this:
      gl.h and gl3.h are both included. Compiler will not invoke errors if using removed OpenGL functionality. [-W#warnings]

which again looks new to me (though TBH I do not check these logs often enough, so...)

Manolo may know more about that one.

 - Matthias 

Ian MacArthur

unread,
Nov 26, 2022, 1:24:52 PM11/26/22
to coredev fltk
On 26 Nov 2022, at 18:12, Matt wrote:
>
> imacarthur schrieb am Samstag, 26. November 2022 um 17:49:41 UTC+1:
> I was having a look at the build logs from my Mac and I'm seeing a lot of this:
> /Users/ian/src/Git/fltk-1.4/fluid/fluid.h:113:23: warning: in-class initialization of non-static data member is a C++11
> which I do not remember seeing before - seems like a new warning?
>
> Ah, thanks. I fixed those two. Are there more?


No, that seems to have got it.
Cheers...


>
> Also this:
> gl.h and gl3.h are both included. Compiler will not invoke errors if using removed OpenGL functionality. [-W#warnings]
> which again looks new to me (though TBH I do not check these logs often enough, so...)
>
> Manolo may know more about that one.

Yes, and maybe it isn’t too serious?
I guess this is all tied up with the whole “core profile” vs “compatibility profile” business?



Manolo

unread,
Nov 27, 2022, 2:14:34 AM11/27/22
to fltk.coredev
Le samedi 26 novembre 2022 à 17:49:41 UTC+1, Ian a écrit :

[ 91%] Building CXX object examples/CMakeFiles/OpenGL3test.dir/OpenGL3test.cxx.o

In file included from /Users/ian/src/Git/fltk-1.4/examples/OpenGL3test.cxx:33:

In file included from /Users/ian/src/Git/fltk-1.4/FL/gl.h:58:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:5:2: warning: 

      gl.h and gl3.h are both included. Compiler will not invoke errors if using removed OpenGL functionality. [-W#warnings]

#warning gl.h and gl3.h are both included.  Compiler will not invoke errors if using removed OpenGL functionality.

This warning is gone with commit acf7254
Reply all
Reply to author
Forward
0 new messages