FLTK logo

Re: [fltk/fltk] Scaled window dimensions off by 1 (#123)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Scaled window dimensions off by 1 (#123) wcout Nov 26, 2020  
 

Everything default (make without arguments), using g++. Ubuntu 20.04 is updated completley.

g++ --version gives:

gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.

Disabling silent mode shows:

Compiling drivers/X11/Fl_X11_Screen_Driver.cxx...
g++ -I..   -I../jpeg  -Os -Wall -Wunused -Wno-format-y2k  -fno-exceptions -fno-strict-aliasing -ffunction-sections -fdata-sections -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16  -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16   -DFL_LIBRARY -c drivers/X11/Fl_X11_Screen_Driver.cxx -o drivers/X11/Fl_X11_Screen_Driver.o
drivers/X11/Fl_X11_Screen_Driver.cxx: In member function ‘virtual Fl_RGB_Image* Fl_X11_Screen_Driver::read_win_rectangle(int, int, int, int, Fl_Window*, bool, bool*)’:
drivers/X11/Fl_X11_Screen_Driver.cxx:726:9: warning: sy’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  726 |     off = a - b;
      |     ~~~~^~~~~~~
drivers/X11/Fl_X11_Screen_Driver.cxx:789:21: note: sy’ was declared here
  789 |     int dx, dy, sx, sy, sw, sh;
      |                     ^~

Maybe @ManoloFLTK does not use optimization? Or using cmake?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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