Fixed a few warnings in OS X. The fluid stuff was 'touche'd, but not changed.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher
2005-02-06 16:28:36 +00:00
parent f02c5fb451
commit 53e7546c23
12 changed files with 28 additions and 25 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
// //
// "$Id: Fl_Function_Type.cxx,v 1.15.2.16.2.16 2004/11/20 16:19:04 easysw Exp $" // "$Id$"
// //
// C function type code for the Fast Light Tool Kit (FLTK). // C function type code for the Fast Light Tool Kit (FLTK).
// //
@@ -789,5 +789,5 @@ void Fl_Class_Type::write_code2() {
} }
// //
// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.16.2.16 2004/11/20 16:19:04 easysw Exp $". // End of "$Id$".
// //
+2 -2
View File
@@ -1,5 +1,5 @@
// //
// "$Id: Fl_Group_Type.cxx,v 1.4.2.7.2.4 2004/04/11 04:38:55 easysw Exp $" // "$Id$"
// //
// Fl_Group object code for the Fast Light Tool Kit (FLTK). // Fl_Group object code for the Fast Light Tool Kit (FLTK).
// //
@@ -242,5 +242,5 @@ const char tile_type_name[] = "Fl_Tile";
Fl_Tile_Type Fl_Tile_type; // the "factory" Fl_Tile_Type Fl_Tile_type; // the "factory"
// //
// End of "$Id: Fl_Group_Type.cxx,v 1.4.2.7.2.4 2004/04/11 04:38:55 easysw Exp $". // End of "$Id$".
// //
+2 -2
View File
@@ -1,5 +1,5 @@
// //
// "$Id: Fl_Type.cxx,v 1.6.2.6.2.19 2004/05/13 21:02:39 easysw Exp $" // "$Id$"
// //
// Widget type code for the Fast Light Tool Kit (FLTK). // Widget type code for the Fast Light Tool Kit (FLTK).
// //
@@ -791,5 +791,5 @@ void Fl_Type::read_property(const char *c) {
int Fl_Type::read_fdesign(const char*, const char*) {return 0;} int Fl_Type::read_fdesign(const char*, const char*) {return 0;}
// //
// End of "$Id: Fl_Type.cxx,v 1.6.2.6.2.19 2004/05/13 21:02:39 easysw Exp $". // End of "$Id$".
// //
+2 -2
View File
@@ -1,5 +1,5 @@
// //
// "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.29 2004/04/11 04:38:55 easysw Exp $" // "$Id$"
// //
// Widget type code for the Fast Light Tool Kit (FLTK). // Widget type code for the Fast Light Tool Kit (FLTK).
// //
@@ -2019,5 +2019,5 @@ int Fl_Widget_Type::read_fdesign(const char* propname, const char* value) {
} }
// //
// End of "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.29 2004/04/11 04:38:55 easysw Exp $". // End of "$Id$".
// //
+2 -2
View File
@@ -1,5 +1,5 @@
// //
// "$Id: Fluid_Image.cxx,v 1.7.2.9.2.15 2004/04/11 04:38:56 easysw Exp $" // "$Id$"
// //
// Pixmap label support for the Fast Light Tool Kit (FLTK). // Pixmap label support for the Fast Light Tool Kit (FLTK).
// //
@@ -221,5 +221,5 @@ Fluid_Image *ui_find_image(const char *oldname) {
// //
// End of "$Id: Fluid_Image.cxx,v 1.7.2.9.2.15 2004/04/11 04:38:56 easysw Exp $". // End of "$Id$".
// //
+2 -2
View File
@@ -1,5 +1,5 @@
// //
// "$Id: align_widget.cxx,v 1.1.2.7 2004/04/11 04:38:56 easysw Exp $" // "$Id$"
// //
// alignment code for the Fast Light Tool Kit (FLTK). // alignment code for the Fast Light Tool Kit (FLTK).
// //
@@ -412,6 +412,6 @@ void align_widget_cb(Fl_Widget*, long how)
// //
// End of "$Id: align_widget.cxx,v 1.1.2.7 2004/04/11 04:38:56 easysw Exp $". // End of "$Id$".
// //
+2 -2
View File
@@ -1,5 +1,5 @@
// //
// "$Id: code.cxx,v 1.9.2.9.2.7 2004/04/11 04:38:56 easysw Exp $" // "$Id$"
// //
// Code output routines for the Fast Light Tool Kit (FLTK). // Code output routines for the Fast Light Tool Kit (FLTK).
// //
@@ -463,5 +463,5 @@ void Fl_Type::write_code1() {
void Fl_Type::write_code2() {} void Fl_Type::write_code2() {}
// //
// End of "$Id: code.cxx,v 1.9.2.9.2.7 2004/04/11 04:38:56 easysw Exp $". // End of "$Id$".
// //
+2 -2
View File
@@ -1,5 +1,5 @@
// //
// "$Id: factory.cxx,v 1.4.2.11.2.12 2004/04/11 04:38:56 easysw Exp $" // "$Id$"
// //
// Widget factory code for the Fast Light Tool Kit (FLTK). // Widget factory code for the Fast Light Tool Kit (FLTK).
// //
@@ -962,5 +962,5 @@ int lookup_symbol(const char *name, int &v, int numberok) {
} }
// //
// End of "$Id: factory.cxx,v 1.4.2.11.2.12 2004/04/11 04:38:56 easysw Exp $". // End of "$Id$".
// //
+2 -2
View File
@@ -1,5 +1,5 @@
// //
// "$Id: file.cxx,v 1.7.2.6.2.10 2004/04/11 04:38:56 easysw Exp $" // "$Id$"
// //
// Fluid file routines for the Fast Light Tool Kit (FLTK). // Fluid file routines for the Fast Light Tool Kit (FLTK).
// //
@@ -637,5 +637,5 @@ void read_fdesign() {
} }
// //
// End of "$Id: file.cxx,v 1.7.2.6.2.10 2004/04/11 04:38:56 easysw Exp $". // End of "$Id$".
// //
+2 -2
View File
@@ -1,5 +1,5 @@
// //
// "$Id: fluid.cxx,v 1.15.2.13.2.46 2004/09/08 15:42:47 easysw Exp $" // "$Id$"
// //
// FLUID main entry for the Fast Light Tool Kit (FLTK). // FLUID main entry for the Fast Light Tool Kit (FLTK).
// //
@@ -886,5 +886,5 @@ int main(int argc,char **argv) {
} }
// //
// End of "$Id: fluid.cxx,v 1.15.2.13.2.46 2004/09/08 15:42:47 easysw Exp $". // End of "$Id$".
// //
+6 -3
View File
@@ -1,5 +1,5 @@
// //
// "$Id: Fl_Sys_Menu_Bar.cxx,v 1.1.2.10 2004/11/21 14:32:22 easysw Exp $" // "$Id$"
// //
// MacOS system menu bar widget for the Fast Light Tool Kit (FLTK). // MacOS system menu bar widget for the Fast Light Tool Kit (FLTK).
// //
@@ -142,6 +142,8 @@ static void setMenuShortcut( MenuHandle mh, int miCnt, const Fl_Menu_Item *m )
SetMenuItemModifiers( mh, miCnt, macMod ); SetMenuItemModifiers( mh, miCnt, macMod );
} }
#if 0
// this function needs to be verified before we compile it back in.
static void catMenuShortcut( const Fl_Menu_Item *m, char *dst ) static void catMenuShortcut( const Fl_Menu_Item *m, char *dst )
{ {
if ( !m->shortcut_ ) if ( !m->shortcut_ )
@@ -158,6 +160,7 @@ static void catMenuShortcut( const Fl_Menu_Item *m, char *dst )
//if ( isalnum( mm->shortcut_ ) && !( mm->flags & FL_SUBMENU ) ) //if ( isalnum( mm->shortcut_ ) && !( mm->flags & FL_SUBMENU ) )
//sprintf( buf+strlen(buf), "/%c", mm->shortcut_ ); //sprintf( buf+strlen(buf), "/%c", mm->shortcut_ );
} }
#endif
static void setMenuFlags( MenuHandle mh, int miCnt, const Fl_Menu_Item *m ) static void setMenuFlags( MenuHandle mh, int miCnt, const Fl_Menu_Item *m )
{ {
@@ -188,7 +191,7 @@ static void createSubMenu( MenuHandle mh, int &cnt, pFl_Menu_Item &mm )
int miCnt = 1; int miCnt = 1;
while ( mm->text ) while ( mm->text )
{ {
MenuHandle smh; MenuHandle smh = 0;
buf[1] = 0; buf[1] = 0;
catMenuFont( mm, buf+1 ); catMenuFont( mm, buf+1 );
//catMenuShortcut( mm, buf+1 ); //catMenuShortcut( mm, buf+1 );
@@ -320,5 +323,5 @@ int Fl_Menu_Bar::handle(int event) {
#endif /* __APPLE__ */ #endif /* __APPLE__ */
// //
// End of "$Id: Fl_Sys_Menu_Bar.cxx,v 1.1.2.10 2004/11/21 14:32:22 easysw Exp $". // End of "$Id$".
// //
+2 -2
View File
@@ -165,8 +165,8 @@ static void innards(const uchar *buf, int X, int Y, int W, int H,
} }
} }
#elif defined(__APPLE_QUARTZ__) #elif defined(__APPLE_QUARTZ__)
void *array = buf; const void *array = buf;
uchar *tmpBuf; uchar *tmpBuf = 0;
if (cb) { if (cb) {
tmpBuf = new uchar[ H*W*delta ]; tmpBuf = new uchar[ H*W*delta ];
for (int i=0; i<H; i++) { for (int i=0; i<H; i++) {