FLTK logo

[master] 6fc5c16 - Fixes warnings about test/icon.cxx in issue #296

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

[master] 6fc5c16 - Fixes warnings about test/icon.cxx in issue #296 "Greg Ercolano" Nov 26, 2021  
 
commit 6fc5c16e1c08d61e34cb4b145663afbbab152e41
Author:     Greg Ercolano <erco@seriss.com>
AuthorDate: Fri Nov 26 09:50:19 2021 -0800
Commit:     Greg Ercolano <erco@seriss.com>
CommitDate: Fri Nov 26 09:50:19 2021 -0800

    Fixes warnings about test/icon.cxx in issue #296

 test/icon.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git test/icon.cxx test/icon.cxx
index 3bf565f..f3c60c8 100644
--- test/icon.cxx
+++ test/icon.cxx
@@ -23,7 +23,7 @@ static Fl_Double_Window *win;
 
 void choice_cb(Fl_Widget *, void *v) {
   Fl_Color c = (Fl_Color)fl_uint(v);
-  uchar buffer[32*32*3];
+  static uchar buffer[32*32*3];         // static: issue #296
   Fl_RGB_Image icon(buffer, 32, 32, 3);
   icon.color_average(c, 0.0);
   win->icon(&icon);
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

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