mirror of https://github.com/fltk/fltk
Fix compiler warnings.
Add demo.menu and all xbm and xpm files in test directory to install list. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
1c399af444
commit
dd0503576d
|
@ -551,13 +551,13 @@ void Fl_Decl_Type::write_code1() {
|
|||
while (e>c && e[-1]==';') e--;
|
||||
if (class_name(1)) {
|
||||
write_public(public_);
|
||||
write_h(" %.*s;\n", e-c, c);
|
||||
write_h(" %.*s;\n", (int)(e-c), c);
|
||||
} else {
|
||||
if (public_) {
|
||||
write_h("extern %.*s;\n", e-c, c);
|
||||
write_c("%.*s;\n", e-c, c);
|
||||
write_h("extern %.*s;\n", (int)(e-c), c);
|
||||
write_c("%.*s;\n", (int)(e-c), c);
|
||||
} else {
|
||||
write_c("static %.*s;\n", e-c, c);
|
||||
write_c("static %.*s;\n", (int)(e-c), c);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -72,13 +72,13 @@ int fl_vsnprintf(char* buffer, size_t bufsize, const char* format, va_list ap) {
|
|||
else sign = 0;
|
||||
|
||||
width = 0;
|
||||
while (isdigit(*format)) width = width * 10 + *format++ - '0';
|
||||
while (isdigit(*format & 255)) width = width * 10 + *format++ - '0';
|
||||
|
||||
if (*format == '.') {
|
||||
format ++;
|
||||
prec = 0;
|
||||
|
||||
while (isdigit(*format)) prec = prec * 10 + *format++ - '0';
|
||||
while (isdigit(*format & 255)) prec = prec * 10 + *format++ - '0';
|
||||
} else prec = -1;
|
||||
|
||||
if (*format == 'l' && format[1] == 'l') {
|
||||
|
|
|
@ -175,7 +175,7 @@ clean:
|
|||
install:
|
||||
echo "Installing example programs to $(DESTDIR)$(docdir)/examples..."
|
||||
-$(MKDIR) $(DESTDIR)$(docdir)/examples
|
||||
$(CP) *.h *.cxx *.fl $(DESTDIR)$(docdir)/examples
|
||||
$(CP) *.h *.cxx *.fl demo.menu *.xbm *.xpm $(DESTDIR)$(docdir)/examples
|
||||
$(CHMOD) 644 $(DESTDIR)$(docdir)/examples/*.*
|
||||
|
||||
uninstall:
|
||||
|
|
|
@ -315,7 +315,7 @@ int load_the_menu(const char* fname)
|
|||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
putenv("FLTK_DOCDIR=../documentation");
|
||||
putenv((char *)"FLTK_DOCDIR=../documentation");
|
||||
create_the_forms();
|
||||
char buf[256];
|
||||
strcpy(buf, argv[0]);
|
||||
|
|
Loading…
Reference in New Issue