Ticket #6840: haiku.gcc4.5.diff
File haiku.gcc4.5.diff, 4.9 KB (added by , 13 years ago) |
---|
-
../src/add-ons/kernel/bus_managers/scsi/device_scan.cpp
117 117 // bad luck 118 118 if (std::min((int)cmd->allocation_length, 119 119 new_inquiry_data->additional_length + 4) 120 >= (int)offsetof(scsi_res_inquiry, version_descriptor[9])) {120 >= (int)offsetof(scsi_res_inquiry, _res74)) { 121 121 int i, previousStandard = -1; 122 122 123 123 for (i = 0; i < 8; ++i) { -
../src/add-ons/decorators/BeDecorator/BeDecorator.cpp
267 267 268 268 bool hasTab = false; 269 269 270 switch ( Look()) {270 switch ((int)Look()) { 271 271 case B_MODAL_WINDOW_LOOK: 272 272 fBorderWidth = 5; 273 273 break; … … 429 429 430 430 // Draw the border frame 431 431 BRect r = BRect(fTopBorder.LeftTop(), fBottomBorder.RightBottom()); 432 switch ( fLook) {432 switch ((int)fLook) { 433 433 case B_TITLED_WINDOW_LOOK: 434 434 case B_DOCUMENT_WINDOW_LOOK: 435 435 case B_MODAL_WINDOW_LOOK: … … 540 540 if (!(fFlags & B_NOT_RESIZABLE)) { 541 541 r = fResizeRect; 542 542 543 switch ( fLook) {543 switch ((int)fLook) { 544 544 case B_DOCUMENT_WINDOW_LOOK: 545 545 { 546 546 if (!invalid.Intersects(r)) … … 884 884 // Handle invalidation of resize rect 885 885 if (dirty && !(fFlags & B_NOT_RESIZABLE)) { 886 886 BRect realResizeRect; 887 switch ( fLook) {887 switch ((int)fLook) { 888 888 case B_DOCUMENT_WINDOW_LOOK: 889 889 realResizeRect = fResizeRect; 890 890 // Resize rect at old location -
../src/add-ons/decorators/SATDecorator/SATDecorator.cpp
126 126 127 127 bool hasTab = false; 128 128 129 switch ( Look()) {129 switch ((int)Look()) { 130 130 case B_MODAL_WINDOW_LOOK: 131 131 fBorderWidth = 5; 132 132 break; -
../src/servers/app/DefaultDecorator.cpp
350 350 351 351 bool hasTab = false; 352 352 353 switch ( Look()) {353 switch ((int)Look()) { 354 354 case B_MODAL_WINDOW_LOOK: 355 355 fBorderWidth = 5; 356 356 break; … … 511 511 512 512 // Draw the border frame 513 513 BRect r = BRect(fTopBorder.LeftTop(), fBottomBorder.RightBottom()); 514 switch ( fLook) {514 switch ((int)fLook) { 515 515 case B_TITLED_WINDOW_LOOK: 516 516 case B_DOCUMENT_WINDOW_LOOK: 517 517 case B_MODAL_WINDOW_LOOK: … … 655 655 ComponentColors colors; 656 656 _GetComponentColors(COMPONENT_RESIZE_CORNER, colors); 657 657 658 switch ( fLook) {658 switch ((int)fLook) { 659 659 case B_DOCUMENT_WINDOW_LOOK: 660 660 { 661 661 if (!invalid.Intersects(r)) … … 989 989 // Handle invalidation of resize rect 990 990 if (dirty && !(fFlags & B_NOT_RESIZABLE)) { 991 991 BRect realResizeRect; 992 switch ( fLook) {992 switch ((int)fLook) { 993 993 case B_DOCUMENT_WINDOW_LOOK: 994 994 realResizeRect = fResizeRect; 995 995 // Resize rect at old location -
../src/kits/tracker/FSUtils.h
259 259 _IMPEXP_TRACKER status_t FSLaunchUsing(const entry_ref *ref, BMessage *listOfRefs); 260 260 261 261 262 // some extra directory_which values263 // move these to FindDirectory.h264 const uint32 B_USER_MAIL_DIRECTORY = 3500;265 const uint32 B_USER_QUERIES_DIRECTORY = 3501;266 const uint32 B_USER_PEOPLE_DIRECTORY = 3502;267 const uint32 B_USER_DOWNLOADS_DIRECTORY = 3503;268 const uint32 B_USER_DESKBAR_APPS_DIRECTORY = 3504;269 const uint32 B_USER_DESKBAR_PREFERENCES_DIRECTORY = 3505;270 const uint32 B_USER_DESKBAR_DEVELOP_DIRECTORY = 3506;271 const uint32 B_BOOT_DISK = 3507;272 // map /boot into the directory_which enum for convenience273 274 262 class WellKnowEntryList { 275 263 // matches up names, id's and node_refs of well known entries in the 276 264 // system hierarchy -
../headers/os/storage/FindDirectory.h
69 69 B_USER_SOUNDS_DIRECTORY, 70 70 B_USER_DATA_DIRECTORY, 71 71 B_USER_CACHE_DIRECTORY, 72 B_USER_MAIL_DIRECTORY, 73 B_USER_QUERIES_DIRECTORY, 74 B_USER_PEOPLE_DIRECTORY, 75 B_USER_DOWNLOADS_DIRECTORY, 76 B_USER_DESKBAR_APPS_DIRECTORY, 77 B_USER_DESKBAR_PREFERENCES_DIRECTORY, 78 B_USER_DESKBAR_DEVELOP_DIRECTORY, 79 72 80 73 81 /* Global directories. */ 74 82 B_APPS_DIRECTORY = 4000, 75 83 B_PREFERENCES_DIRECTORY, 76 84 B_UTILITIES_DIRECTORY, 85 B_BOOT_DISK, 77 86 78 87 /* Obsolete: Legacy BeOS definition to be phased out */ 79 88 B_BEOS_DIRECTORY = 1000,