mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 16:46:52 +08:00
Fix all compiler warnings from various build systems.
Fix vsnprintf() implementation to properly handle long and long long ints. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -230,7 +230,7 @@ void Fl_Group_Type::move_child(Fl_Type* cc, Fl_Type* before) {
|
||||
////////////////////////////////////////////////////////////////
|
||||
// live mode support
|
||||
|
||||
Fl_Widget *Fl_Group_Type::enter_live_mode(int top) {
|
||||
Fl_Widget *Fl_Group_Type::enter_live_mode(int) {
|
||||
Fl_Group *grp = new Fl_Group(o->x(), o->y(), o->w(), o->h());
|
||||
live_widget = grp;
|
||||
if (live_widget) {
|
||||
@@ -245,7 +245,7 @@ Fl_Widget *Fl_Group_Type::enter_live_mode(int top) {
|
||||
return live_widget;
|
||||
}
|
||||
|
||||
Fl_Widget *Fl_Tabs_Type::enter_live_mode(int top) {
|
||||
Fl_Widget *Fl_Tabs_Type::enter_live_mode(int) {
|
||||
Fl_Tabs *grp = new Fl_Tabs(o->x(), o->y(), o->w(), o->h());
|
||||
live_widget = grp;
|
||||
if (live_widget) {
|
||||
@@ -278,7 +278,7 @@ void Fl_Group_Type::copy_properties() {
|
||||
|
||||
const char scroll_type_name[] = "Fl_Scroll";
|
||||
|
||||
Fl_Widget *Fl_Scroll_Type::enter_live_mode(int top) {
|
||||
Fl_Widget *Fl_Scroll_Type::enter_live_mode(int) {
|
||||
Fl_Group *grp = new Fl_Scroll(o->x(), o->y(), o->w(), o->h());
|
||||
grp->show();
|
||||
live_widget = grp;
|
||||
|
||||
+1
-1
@@ -848,7 +848,7 @@ int Fl_Type::read_fdesign(const char*, const char*) {return 0;}
|
||||
* \return a widget pointer that the live mode initiator can 'show()'
|
||||
* \see leave_live_mode()
|
||||
*/
|
||||
Fl_Widget *Fl_Type::enter_live_mode(int top) {
|
||||
Fl_Widget *Fl_Type::enter_live_mode(int) {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
|
||||
@@ -1689,7 +1689,7 @@ void overlay_cb(Fl_Button*o,void *v) {
|
||||
|
||||
void leave_live_mode_cb(Fl_Widget*, void*);
|
||||
|
||||
void live_mode_cb(Fl_Button*o,void *v) {
|
||||
void live_mode_cb(Fl_Button*o,void *) {
|
||||
/// \todo live mode should end gracefully when the application quits
|
||||
/// or when the user closes the live widget
|
||||
static Fl_Type *live_type = 0L;
|
||||
@@ -2620,7 +2620,7 @@ void leave_live_mode_cb(Fl_Widget*, void*) {
|
||||
live_mode_cb(0, 0);
|
||||
}
|
||||
|
||||
Fl_Widget *Fl_Widget_Type::enter_live_mode(int top) {
|
||||
Fl_Widget *Fl_Widget_Type::enter_live_mode(int) {
|
||||
live_widget = widget(o->x(), o->y(), o->w(), o->h());
|
||||
if (live_widget)
|
||||
copy_properties();
|
||||
|
||||
@@ -1482,7 +1482,7 @@ void Fl_Widget_Class_Type::write_code2() {
|
||||
////////////////////////////////////////////////////////////////
|
||||
// live mode support
|
||||
|
||||
Fl_Widget *Fl_Window_Type::enter_live_mode(int top) {
|
||||
Fl_Widget *Fl_Window_Type::enter_live_mode(int) {
|
||||
Fl_Window *win = new Fl_Window(o->x(), o->y(), o->w(), o->h());
|
||||
live_widget = win;
|
||||
if (live_widget) {
|
||||
|
||||
@@ -521,7 +521,7 @@ void widget_size_cb(Fl_Widget *, long size) {
|
||||
}
|
||||
|
||||
Fl_Widget *w = ((Fl_Widget_Type *)o)->o;
|
||||
w->labelsize(size);
|
||||
w->labelsize((uchar)size);
|
||||
Fl_Font f;
|
||||
int s = (int)size;
|
||||
Fl_Color c;
|
||||
|
||||
@@ -483,7 +483,7 @@ Fl_Double_Window* make_comment_panel() {
|
||||
return comment_panel;
|
||||
}
|
||||
|
||||
void type_make_cb(Fl_Widget*w,void*d) {
|
||||
void type_make_cb(Fl_Widget*,void*d) {
|
||||
undo_checkpoint();
|
||||
Fl_Type *t = Fl_Type_make((char*)d);
|
||||
if (t) {
|
||||
@@ -499,7 +499,7 @@ void type_make_cb(Fl_Widget*w,void*d) {
|
||||
Fl_Window *widgetbin_panel=(Fl_Window *)0;
|
||||
|
||||
Fl_Window* make_widgetbin() {
|
||||
{ widgetbin_panel = new Fl_Window(551, 85, "Widget Bin");
|
||||
{ widgetbin_panel = new Fl_Window(550, 85, "Widget Bin");
|
||||
widgetbin_panel->align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE);
|
||||
{ Fl_Group* o = new Fl_Group(3, 3, 79, 79);
|
||||
{ Fl_Button* o = new Fl_Button(5, 5, 24, 24);
|
||||
|
||||
@@ -125,7 +125,7 @@ Function {make_code_panel()} {open
|
||||
Function {make_codeblock_panel()} {open
|
||||
} {
|
||||
Fl_Window codeblock_panel {
|
||||
label {Code Block Properties}
|
||||
label {Code Block Properties} selected
|
||||
xywh {468 221 300 115} type Double labelsize 11 hide resizable
|
||||
code0 {o->size_range(o->w(), o->h(), Fl::w(), o->h());} modal
|
||||
} {
|
||||
@@ -339,7 +339,7 @@ Function {make_comment_panel()} {open
|
||||
}
|
||||
}
|
||||
|
||||
Function {type_make_cb(Fl_Widget*w,void*d)} {open return_type void
|
||||
Function {type_make_cb(Fl_Widget*,void*d)} {open return_type void
|
||||
} {
|
||||
code {undo_checkpoint();
|
||||
Fl_Type *t = Fl_Type_make((char*)d);
|
||||
@@ -356,8 +356,8 @@ Function {type_make_cb(Fl_Widget*w,void*d)} {open return_type void
|
||||
Function {make_widgetbin()} {open
|
||||
} {
|
||||
Fl_Window widgetbin_panel {
|
||||
label {Widget Bin} selected
|
||||
xywh {411 171 551 85} type Single align 80 non_modal visible
|
||||
label {Widget Bin}
|
||||
xywh {411 171 550 85} type Single align 80 non_modal visible
|
||||
} {
|
||||
Fl_Group {} {
|
||||
xywh {3 3 79 79}
|
||||
|
||||
@@ -88,7 +88,7 @@ extern Fl_Light_Button *comment_in_header;
|
||||
extern Fl_Menu_Button *comment_predefined;
|
||||
extern Fl_Button *comment_load;
|
||||
Fl_Double_Window* make_comment_panel();
|
||||
void type_make_cb(Fl_Widget*w,void*d);
|
||||
void type_make_cb(Fl_Widget*,void*d);
|
||||
#include <FL/Fl_Window.H>
|
||||
extern Fl_Window *widgetbin_panel;
|
||||
extern void type_make_cb(Fl_Button*, void*);
|
||||
|
||||
Reference in New Issue
Block a user