[LOW] STR #3529: Fix compiler warnings

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.bugs  ]
 
Previous Message ]New Message | Reply ]Next Message ]

[LOW] STR #3529: Fix compiler warnings Albrecht Schlosser Aug 29, 2019 top right image
 
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: https://www.fltk.org/str.php?L3529
Version: 1.4-current


There are a lot of compiler warnings with recent gcc versions (7.x and
8.x). We should try to fix all these warnings.

Exceptions: two warnings related to deprecated functions are well-known and
can't be fixed easily. We can leave these unless someone finds a good
solution. These warnings are listed in the attached file 'warnings.txt' but
can be ignored for now.

Files with compiler warnings:

src/Fl_File_Chooser2.cxx
src/Fl_Help_View.cxx
src/Fl_x.cxx [1]
src/Fl_File_Icon2.cxx
fluid/template_panel.cxx
fluid/undo.cxx
test/colbrowser.cxx
test/file_chooser.cxx

[1] Exception [-Wdeprecated-declarations], see above.

For all other warnings see attached log file which was compiled on Linux
with gcc 8.3.

Configure / make command line (with all defaults):

$ make distclean
$ CC=gcc-8 CXX=g++-8 make

Summary of issued gcc/g++ warnings:

[-Wdeprecated-declarations]
[-Wformat-overflow=]
[-Wformat-truncation=]


Link: https://www.fltk.org/str.php?L3529
Version: 1.4-current


Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2021 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.