diff options
author | John Tytgat <joty@netsurf-browser.org> | 2007-06-11 20:47:18 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2007-06-11 20:47:18 +0000 |
commit | 957d6601bdd4b4b50f7a774f85676f3b7eb685ed (patch) | |
tree | 5cf798b85a30962f7027aaf775e38c5e0957a5cf /rufl_chars.c | |
parent | d6af9eba75d0d4b3ddcedbdca884d623545544fa (diff) | |
download | librufl-957d6601bdd4b4b50f7a774f85676f3b7eb685ed.tar.gz librufl-957d6601bdd4b4b50f7a774f85676f3b7eb685ed.tar.bz2 |
- Reduced compiler warnings:
- got rid of aliasing warnings by introducing an extra (void *) casting.
- format specifier for 'size_t' type has now 'z' attribute
- Injected const attributes (also changing public type rufl_family_list
@ rufl.h)
- makefile:
- support for GCCSDK 3.4 (AOF) and GCCSDK 4 (ELF) based on AB_ELFBUILD
(= a variable also used in GCCSDK Autobuilder).
- changed the library name from rufl.o to librufl.a. Needed for GCCSDK
4 but if you're using -L<libdir> -lrufl in your link line, this rename
make that this works for both GCCSDK 3.4 and GCCSDK 4.
[ Also changes for the Norcroft case which haven't been verified and
probably no longer working. ]
svn path=/trunk/rufl/; revision=3343
Diffstat (limited to 'rufl_chars.c')
-rw-r--r-- | rufl_chars.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rufl_chars.c b/rufl_chars.c index d9b9d6f..440a1d0 100644 --- a/rufl_chars.c +++ b/rufl_chars.c @@ -29,7 +29,7 @@ int main(void) { unsigned int i; bool quit = false; - wimp_MESSAGE_LIST(2) messages = { { message_MODE_CHANGE, + const wimp_MESSAGE_LIST(2) messages = { { message_MODE_CHANGE, message_QUIT } }; wimp_t task; wimp_menu *menu; @@ -63,7 +63,7 @@ int main(void) rufl_code code = rufl_OK; error = xwimp_initialise(wimp_VERSION_RO3, "RUfl Chars", - (wimp_message_list *) &messages, + (const wimp_message_list *) (const void *) &messages, 0, &task); if (error) { printf("error: xwimp_initialise: 0x%x: %s\n", @@ -126,7 +126,7 @@ int main(void) if (error) die(error->errmess); - error = xwimp_open_window((wimp_open *) &state); + error = xwimp_open_window((wimp_open *) (void *) &state); if (error) die(error->errmess); |