Changeset 40 for abuse/trunk
- Timestamp:
- Mar 2, 2008, 12:52:07 AM (15 years ago)
- Location:
- abuse/trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/configure.ac
r37 r40 45 45 CPPFLAGS="${CPPFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer" 46 46 # Code qui fait des warnings == code de porc == deux baffes dans ta gueule 47 CPPFLAGS="${CPPFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -W strict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs-Wsign-compare"47 CPPFLAGS="${CPPFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Waggregate-return -Wsign-compare" 48 48 49 49 dnl Checks for header files -
abuse/trunk/src/dev.cpp
r39 r40 2097 2097 if (!mess_win) 2098 2098 { 2099 mess_win=file_dialog(eh,symbol_str("saveas_name"),current_level ? current_level->name() : (char *)"untitled.spe",2099 mess_win=file_dialog(eh,symbol_str("saveas_name"),current_level ? current_level->name() : "untitled.spe", 2100 2100 ID_LEVEL_SAVEAS_OK,symbol_str("ok_button"), 2101 2101 ID_CANCEL,symbol_str("cancel_button"), -
abuse/trunk/src/imlib/gifread.cpp
r17 r40 14 14 15 15 16 struct {16 struct GifScreen { 17 17 uint16_t Width; 18 18 uint16_t Height; … … 24 24 } GifScreen; 25 25 26 struct {26 struct gif_screen { 27 27 uint16_t w,h; 28 28 uint8_t color_info,background,reserved; 29 29 } gif_screen; 30 30 31 struct {31 struct gif_image { 32 32 uint16_t xoff,yoff,w,h; 33 33 uint8_t color_info; -
abuse/trunk/src/imlib/jmalloc.cpp
r39 r40 203 203 for (;f;f=f->next,i++) 204 204 { 205 fprintf(fp,"%4d %p (%d) %4d ",i,f,((char *)f-(char *)sfirst),f->size); 205 fprintf(fp, "%4d %p (%ld) %4ld ", 206 i, f, (long int)((char *)f - (char *)sfirst), (long int)f->size); 206 207 #ifdef MEM_CHECK 207 208 if (f->size>0) … … 236 237 237 238 238 fprintf(fp,"************** CACHE SPACE ******************\n",block_size);239 fprintf(fp,"************** CACHE SPACE %i ******************\n", block_size); 239 240 i=0; 240 241 for (f=cfirst;f;f=f->next,i++) … … 690 691 " DOS users : Remove any TSR's and device drivers you can.\n" 691 692 " UNIX users : Do you have a swapfile/partition setup?\n"; 693 #ifdef __WATCOMC__ 692 694 static char const *not_enough_low_memory_message = 693 695 "Memory Manager : Not enough low memory available (%d : need %d)\n" … … 696 698 " - remove TSRs & drivers not needed by ABUSE\n" 697 699 " - add memory to your system\n"; 700 #endif 698 701 699 702 void jmalloc_init(int32_t min_size) -
abuse/trunk/src/imlib/targa.cpp
r17 r40 43 43 int h=fp->read_uint16(); 44 44 uint8_t bpp=fp->read_uint8(); 45 uint8_t im_des=fp->read_uint8();45 fp->read_uint8(); // im_des 46 46 47 47 if (bpp!=32) -
abuse/trunk/src/loader2.cpp
r39 r40 282 282 color_table=NULL; 283 283 284 # if 0 284 285 int should_save_sd_cache = 0; 285 286 286 # if 0287 287 char *cachepath; 288 288 cachepath = (char *)jmalloc( strlen( get_save_filename_prefix() ) + 12 + 1, "cachepath" ); -
abuse/trunk/src/net/include/tcpip.hpp
r39 r40 45 45 { 46 46 if (who->protocol_type()==IP && 47 !memcmp(&addr.sin_addr,& ((ip_address *)who)->addr.sin_addr,sizeof(addr.sin_addr)))47 !memcmp(&addr.sin_addr,& ((ip_address const *)who)->addr.sin_addr,sizeof(addr.sin_addr))) 48 48 return 1; 49 49 else return 0; -
abuse/trunk/src/net/tcpip.cpp
r39 r40 365 365 // got a notification request "broadcast" 366 366 ip_address *addr; 367 net_address *tmp; 367 368 368 369 #ifdef TCPIP_DEBUG … … 370 371 #endif 371 372 372 len = notifier->read(buf, 512, (net_address**)&addr); 373 len = notifier->read(buf, 512, &tmp); 374 addr = (ip_address *)tmp; 373 375 #ifdef TCPIP_DEBUG 374 376 if (len>0) { … … 510 512 // got a notification response 511 513 ip_address *addr; 514 net_address *tmp; 512 515 513 516 #ifdef TCPIP_DEBUG … … 515 518 #endif 516 519 517 len = responder->read(buf, 512, (net_address**)&addr); 520 len = responder->read(buf, 512, &tmp); 521 addr = (ip_address *)tmp; 518 522 519 523 #ifdef TCPIP_DEBUG -
abuse/trunk/src/objects.cpp
r39 r40 268 268 current_object = this; 269 269 void *m = mark_heap( TMP_SPACE ); 270 void *ret =eval_function( (lisp_symbol *)ns, NULL );270 (void)eval_function( (lisp_symbol *)ns, NULL ); 271 271 restore_heap( m, TMP_SPACE ); 272 272 } … … 734 734 else 735 735 { 736 view *v=controller();736 //view *v=controller(); 737 737 738 738 if (fade_count()) … … 931 931 int fxv=sfxvel(),fyv=sfyvel(); 932 932 fxv+=fxa; fyv+=fya; 933 int32_t xv=xvel()+xa+(fxv>>8);933 //int32_t xv=xvel()+xa+(fxv>>8); 934 934 set_xvel(xvel()+xa+(fxv>>8)); 935 935 set_yvel(yvel()+ya+(fyv>>8)); … … 1453 1453 int fxv=sfxvel(),fyv=sfyvel(); 1454 1454 fxv+=fxa; fyv+=fya; 1455 int32_t xv=xvel()+xa+(fxv>>8);1455 //int32_t xv=xvel()+xa+(fxv>>8); 1456 1456 set_xvel(xvel()+xa+(fxv>>8)); 1457 1457 set_yvel(yvel()+ya+(fyv>>8)); -
abuse/trunk/src/property.cpp
r39 r40 131 131 fprintf(fp,"\"%s\"\n",i->def_str); 132 132 else 133 fprintf(fp,"% g\n",i->def_num);133 fprintf(fp,"%d\n",i->def_num); 134 134 } 135 135 fclose(fp); -
abuse/trunk/src/view.cpp
r39 r40 169 169 170 170 #ifdef __WATCOMC__ 171 char *get_login()171 char const *get_login() 172 172 { if (cur_user_name[0]) return cur_user_name; else return "DOS user"; } 173 173 … … 175 175 #elif defined( __APPLE__ ) 176 176 177 char *get_login()177 char const *get_login() 178 178 { if (cur_user_name[0]) return cur_user_name; else return "Mac user"; } 179 179 180 180 #else 181 char *get_login()182 { if (cur_user_name[0]) return cur_user_name; else return (getlogin() ? getlogin() : (char *)"unknown"); }181 char const *get_login() 182 { if (cur_user_name[0]) return cur_user_name; else return (getlogin() ? getlogin() : "unknown"); } 183 183 184 184 #endif
Note: See TracChangeset
for help on using the changeset viewer.