Fix some mostly harmless warnings and re-generated dependencies. Now compiles with zero warnings on Linux (gcc 4.1.2)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1945 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
6316fc2add
commit
d8bb1e1d55
@ -1,4 +1,3 @@
|
||||
$(OBJDIR)/SFont.o: SFont.c SFont.h
|
||||
$(OBJDIR)/brush.o: brush.c global.h struct.h const.h graph.h misc.h errors.h \
|
||||
windows.h sdlscreen.h brush.h tiles.h
|
||||
$(OBJDIR)/brush_ops.o: brush_ops.c brush.h struct.h const.h buttons.h engine.h \
|
||||
@ -13,16 +12,17 @@ $(OBJDIR)/buttons_effects.o: buttons_effects.c brush.h struct.h const.h buttons.
|
||||
$(OBJDIR)/colorred.o: colorred.c colorred.h struct.h const.h
|
||||
$(OBJDIR)/engine.o: engine.c const.h struct.h global.h graph.h misc.h special.h \
|
||||
buttons.h operatio.h shade.h errors.h sdlscreen.h windows.h brush.h \
|
||||
input.h engine.h pages.h layers.h factory.h loadsave.h io.h pxsimple.h
|
||||
input.h engine.h pages.h layers.h factory.h loadsave.h io.h pxsimple.h \
|
||||
oldies.h
|
||||
$(OBJDIR)/factory.o: factory.c brush.h struct.h const.h buttons.h engine.h errors.h \
|
||||
filesel.h loadsave.h global.h graph.h io.h misc.h pages.h readline.h \
|
||||
sdlscreen.h windows.h palette.h input.h help.h realpath.h setup.h \
|
||||
tiles.h
|
||||
$(OBJDIR)/fileformats.o: fileformats.c errors.h global.h struct.h const.h \
|
||||
loadsave.h misc.h io.h windows.h
|
||||
loadsave.h misc.h io.h pages.h windows.h
|
||||
$(OBJDIR)/filesel.o: filesel.c const.h struct.h global.h misc.h errors.h io.h \
|
||||
windows.h sdlscreen.h loadsave.h mountlist.h engine.h readline.h input.h \
|
||||
help.h filesel.h
|
||||
windows.h sdlscreen.h loadsave.h mountlist.h engine.h readline.h \
|
||||
input.h help.h filesel.h
|
||||
$(OBJDIR)/graph.o: graph.c global.h struct.h const.h engine.h buttons.h pages.h \
|
||||
errors.h sdlscreen.h graph.h misc.h pxsimple.h pxtall.h pxwide.h \
|
||||
pxdouble.h pxtriple.h pxwide2.h pxtall2.h pxquad.h windows.h input.h \
|
||||
@ -54,21 +54,19 @@ $(OBJDIR)/misc.o: misc.c struct.h const.h sdlscreen.h global.h errors.h buttons.
|
||||
$(OBJDIR)/miscfileformats.o: miscfileformats.c engine.h struct.h const.h errors.h \
|
||||
global.h io.h libraw2crtc.h loadsave.h misc.h sdlscreen.h windows.h \
|
||||
oldies.h
|
||||
$(OBJDIR)/mountlist.o: mountlist.c
|
||||
$(OBJDIR)/oldies.o: oldies.c struct.h const.h global.h errors.h misc.h palette.h
|
||||
$(OBJDIR)/mountlist.o: mountlist.c mountlist.h
|
||||
$(OBJDIR)/oldies.o: oldies.c struct.h const.h global.h errors.h misc.h palette.h \
|
||||
pages.h windows.h layers.h
|
||||
$(OBJDIR)/op_c.o: op_c.c op_c.h struct.h const.h colorred.h errors.h global.h \
|
||||
engine.h windows.h
|
||||
$(OBJDIR)/operatio.o: operatio.c const.h struct.h global.h misc.h engine.h graph.h \
|
||||
operatio.h buttons.h pages.h errors.h sdlscreen.h brush.h windows.h \
|
||||
input.h
|
||||
input.h special.h tiles.h
|
||||
$(OBJDIR)/pages.o: pages.c global.h struct.h const.h pages.h errors.h loadsave.h \
|
||||
misc.h windows.h tiles.h
|
||||
misc.h windows.h tiles.h graph.h
|
||||
$(OBJDIR)/palette.o: palette.c const.h struct.h global.h misc.h engine.h readline.h \
|
||||
buttons.h pages.h help.h sdlscreen.h errors.h op_c.h colorred.h \
|
||||
windows.h input.h palette.h shade.h
|
||||
$(OBJDIR)/palette_test.o: palette_test.c const.h struct.h global.h misc.h engine.h \
|
||||
readline.h buttons.h pages.h help.h sdlscreen.h errors.h op_c.h \
|
||||
colorred.h windows.h input.h palette.h shade.h
|
||||
$(OBJDIR)/pversion.o: pversion.c
|
||||
$(OBJDIR)/pxdouble.o: pxdouble.c global.h struct.h const.h sdlscreen.h misc.h \
|
||||
graph.h pxdouble.h pxwide.h
|
||||
@ -76,16 +74,16 @@ $(OBJDIR)/pxquad.o: pxquad.c global.h struct.h const.h sdlscreen.h misc.h graph.
|
||||
pxquad.h
|
||||
$(OBJDIR)/pxsimple.o: pxsimple.c global.h struct.h const.h sdlscreen.h misc.h \
|
||||
graph.h pxsimple.h
|
||||
$(OBJDIR)/pxtall.o: pxtall.c global.h struct.h const.h sdlscreen.h misc.h graph.h \
|
||||
pxtall.h pxsimple.h
|
||||
$(OBJDIR)/pxtall2.o: pxtall2.c global.h struct.h const.h sdlscreen.h misc.h graph.h \
|
||||
pxtall2.h
|
||||
$(OBJDIR)/pxtall.o: pxtall.c global.h struct.h const.h sdlscreen.h misc.h graph.h \
|
||||
pxtall.h pxsimple.h
|
||||
$(OBJDIR)/pxtriple.o: pxtriple.c global.h struct.h const.h sdlscreen.h misc.h \
|
||||
graph.h pxtriple.h
|
||||
$(OBJDIR)/pxwide.o: pxwide.c global.h struct.h const.h sdlscreen.h misc.h graph.h \
|
||||
pxwide.h
|
||||
$(OBJDIR)/pxwide2.o: pxwide2.c global.h struct.h const.h sdlscreen.h misc.h graph.h \
|
||||
pxwide2.h
|
||||
$(OBJDIR)/pxwide.o: pxwide.c global.h struct.h const.h sdlscreen.h misc.h graph.h \
|
||||
pxwide.h
|
||||
$(OBJDIR)/readini.o: readini.c const.h errors.h global.h struct.h misc.h readini.h \
|
||||
setup.h realpath.h io.h windows.h
|
||||
$(OBJDIR)/readline.o: readline.c const.h struct.h global.h misc.h errors.h \
|
||||
@ -96,6 +94,7 @@ $(OBJDIR)/saveini.o: saveini.c const.h global.h struct.h readini.h io.h errors.h
|
||||
$(OBJDIR)/sdlscreen.o: sdlscreen.c global.h struct.h const.h sdlscreen.h errors.h \
|
||||
misc.h
|
||||
$(OBJDIR)/setup.o: setup.c struct.h const.h io.h setup.h
|
||||
$(OBJDIR)/SFont.o: SFont.c SFont.h
|
||||
$(OBJDIR)/shade.o: shade.c global.h struct.h const.h graph.h engine.h errors.h \
|
||||
misc.h readline.h help.h sdlscreen.h windows.h input.h shade.h
|
||||
$(OBJDIR)/special.o: special.c const.h struct.h global.h graph.h engine.h windows.h \
|
||||
@ -105,9 +104,9 @@ $(OBJDIR)/text.o: text.c SFont.h struct.h const.h global.h sdlscreen.h io.h \
|
||||
$(OBJDIR)/tiles.o: tiles.c struct.h const.h global.h graph.h sdlscreen.h engine.h \
|
||||
windows.h input.h misc.h tiles.h
|
||||
$(OBJDIR)/transform.o: transform.c global.h struct.h const.h transform.h engine.h \
|
||||
sdlscreen.h windows.h input.h help.h misc.h readline.h buttons.h pages.h \
|
||||
tiles.h
|
||||
sdlscreen.h windows.h input.h help.h misc.h readline.h buttons.h \
|
||||
pages.h tiles.h
|
||||
$(OBJDIR)/version.o: version.c
|
||||
$(OBJDIR)/windows.o: windows.c windows.h struct.h const.h engine.h errors.h \
|
||||
global.h graph.h input.h misc.h op_c.h colorred.h readline.h sdlscreen.h \
|
||||
palette.h
|
||||
global.h graph.h input.h misc.h op_c.h colorred.h readline.h \
|
||||
sdlscreen.h palette.h
|
||||
|
||||
@ -44,6 +44,7 @@
|
||||
#include "loadsave.h"
|
||||
#include "io.h"
|
||||
#include "pxsimple.h"
|
||||
#include "oldies.h"
|
||||
|
||||
|
||||
// we need this as global
|
||||
|
||||
@ -59,6 +59,7 @@
|
||||
#include "misc.h"
|
||||
#include "struct.h"
|
||||
#include "io.h"
|
||||
#include "pages.h"
|
||||
#include "windows.h" // Best_color()
|
||||
|
||||
//////////////////////////////////// IMG ////////////////////////////////////
|
||||
|
||||
@ -121,6 +121,7 @@ byte Native_filesel(byte load)
|
||||
return CommDlgExtendedError();
|
||||
}
|
||||
#else
|
||||
(void)load; // unused
|
||||
#ifndef __linux__ // This makes no sense on X11-oriented platforms. Nothing is really native there.
|
||||
#warning "EXPERIMENTAL function for native fileselector not available for this platform!"
|
||||
#endif
|
||||
|
||||
2
src/io.c
2
src/io.c
@ -317,6 +317,7 @@ int File_is_hidden(FILE_IS_HIDDEN_ATTRIBUTE const char *fname, const char *full_
|
||||
{
|
||||
#if defined(__amigaos4__) || defined(__AROS__) || defined(__MORPHOS__) || defined(__amigaos__) || defined(__MINT__)
|
||||
// False (unable to determine, or irrrelevent for platform)
|
||||
(void)full_name;//unused
|
||||
return 0;
|
||||
#elif defined(__WIN32__)
|
||||
unsigned long att;
|
||||
@ -328,6 +329,7 @@ int File_is_hidden(FILE_IS_HIDDEN_ATTRIBUTE const char *fname, const char *full_
|
||||
return 0;
|
||||
return (att&FILE_ATTRIBUTE_HIDDEN)?1:0;
|
||||
#else
|
||||
(void)full_name;//unused
|
||||
return fname[0]=='.';
|
||||
#endif
|
||||
|
||||
|
||||
@ -2434,7 +2434,7 @@ void Load_C64(T_IO_Context * context)
|
||||
// get load address
|
||||
word load_addr;
|
||||
load_addr = file_buffer[0] | (file_buffer[1] << 8);
|
||||
sprintf(context->Comment+strlen(context->Comment),", load at $%04.4X",load_addr);
|
||||
sprintf(context->Comment+strlen(context->Comment),", load at $%4.4X",load_addr);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -30,6 +30,9 @@
|
||||
#include "errors.h"
|
||||
#include "misc.h"
|
||||
#include "palette.h"
|
||||
#include "pages.h"
|
||||
#include "windows.h"
|
||||
#include "layers.h"
|
||||
|
||||
void Pixel_in_layer(word x,word y, byte layer, byte color)
|
||||
{
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
#include "misc.h"
|
||||
#include "windows.h"
|
||||
#include "tiles.h"
|
||||
#include "graph.h"
|
||||
|
||||
// -- Layers data
|
||||
|
||||
|
||||
@ -223,8 +223,8 @@ void Init_virtual_keyboard(word y_pos, word keyboard_width, word keyboard_height
|
||||
// TODO X11 and others
|
||||
char* getClipboard()
|
||||
{
|
||||
char* dst = NULL;
|
||||
#ifdef __WIN32__
|
||||
char* dst = NULL;
|
||||
SDL_SysWMinfo info;
|
||||
HWND SDL_Window;
|
||||
|
||||
@ -252,9 +252,9 @@ char* getClipboard()
|
||||
#elif defined __HAIKU__
|
||||
return haiku_get_clipboard();
|
||||
#else
|
||||
#warning "Missing platform-specific code in getClipboard function"
|
||||
// Not implemented (no standard) on Linux systems. Maybe someday...
|
||||
return NULL;
|
||||
#endif
|
||||
return dst;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -346,5 +346,7 @@ void Allow_drag_and_drop(int flag)
|
||||
hwnd = wminfo.window;
|
||||
DragAcceptFiles(hwnd,flag?TRUE:FALSE);
|
||||
SDL_EventState (SDL_SYSWMEVENT,flag?SDL_ENABLE:SDL_DISABLE );
|
||||
#else
|
||||
(void)flag; // unused
|
||||
#endif
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user