Poster | Thread |
thinkchip
| |
Deprecated functions and gcc Posted on 15-Apr-2016 2:13:35
| | [ #1 ] |
|
|
|
Super Member |
Joined: 26-Mar-2004 Posts: 1183
From: Salt Lake City, Utah, USA | | |
|
| I've used Cubic IDE for years. I appreciate the integrated environment. It's been a very long time since it was updated. After considerable tinkering I got the latest SDK (53.30) to work with it. Now I'm getting dozens of warnings about "deprecated" functions. It looks like they are mostly memory related. I'm wondering if anyone can tell me why these functions are deprecated. Also, can these warnings be suppressed when compiling with gcc. _________________ X5000 / microA1(OS4.1 FE U2) / CodeBench / Imagine / Blender Lightwave 2019 / Microsoft Visual C++ |
|
Status: Offline |
|
|
Hans
| |
Re: Deprecated functions and gcc Posted on 15-Apr-2016 3:08:08
| | [ #2 ] |
|
|
|
Elite Member |
Joined: 27-Dec-2003 Posts: 5066
From: New Zealand | | |
|
| @thinkchip
Quote:
thinkchip wrote: ... I'm wondering if anyone can tell me why these functions are deprecated... |
Which functions are we talking about?
Hans
_________________ http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project. https://keasigmadelta.com/ - More of my work. |
|
Status: Offline |
|
|
TheAMIgaOne
| |
Re: Deprecated functions and gcc Posted on 15-Apr-2016 9:35:11
| | [ #3 ] |
|
|
|
Cult Member |
Joined: 10-Jan-2004 Posts: 776
From: United Kingdom | | |
|
| @thinkchip
is it relating to the use of default C malloc rather than IExec->AllocMem()
Edit,
Oh seems IExec->AllocMem() has now been replaced with IExec->AllocVecTags() Last edited by TheAMIgaOne on 15-Apr-2016 at 10:38 AM. Last edited by TheAMIgaOne on 15-Apr-2016 at 09:38 AM. Last edited by TheAMIgaOne on 15-Apr-2016 at 09:38 AM.
_________________ Cross-developer on Windows, OS3, OS4, Linux; Current Projects:- Nephele Cloud App OS4 UserProfile System OS4 AmigaOneXE OS4.1.6
TaoSoftwareBlog Youtube |
|
Status: Offline |
|
|
kamelito
| |
Re: Deprecated functions and gcc Posted on 15-Apr-2016 10:04:57
| | [ #4 ] |
|
|
|
Cult Member |
Joined: 26-Jul-2004 Posts: 813
From: Unknown | | |
|
| |
Status: Offline |
|
|
Trixie
| |
Re: Deprecated functions and gcc Posted on 15-Apr-2016 13:59:03
| | [ #5 ] |
|
|
|
Amiga Developer Team |
Joined: 1-Sep-2003 Posts: 2089
From: Czech Republic | | |
|
| @TheAMIgaOne
Quote:
Oh seems IExec->AllocMem() has now been replaced with IExec->AllocVecTags() |
AllocVecTags() was introduced some fifteen years ago, and AllocMem() wasn't recommended for use even in OS3.x times AFAIR._________________ The Rear Window blog
AmigaOne X5000/020 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition |
|
Status: Offline |
|
|
eliyahu
| |
Re: Deprecated functions and gcc Posted on 15-Apr-2016 15:23:02
| | [ #6 ] |
|
|
|
Super Member |
Joined: 3-Mar-2010 Posts: 1957
From: Waterbury, Connecticut (USA) | | |
|
| @kamelit0
Quote:
thanks for pointing that out. i put that together (along with the wiki-based release notes) just before the most recent SDK shipped. if anyone has anything they'd like to add/change/clarify but don't already have wiki write-permissions, please feel free to send them my way via PM. thanks!
-- eliyahuLast edited by eliyahu on 15-Apr-2016 at 03:23 PM.
_________________ "Physical reality is consistent with universal laws. When the laws do not operate, there is no reality. All of this is unreal." |
|
Status: Offline |
|
|
Hypex
| |
Re: Deprecated functions and gcc Posted on 15-Apr-2016 16:40:48
| | [ #7 ] |
|
|
|
Elite Member |
Joined: 6-May-2007 Posts: 11180
From: Greensborough, Australia | | |
|
| @Trixie
Has OS4 been around that long? Must have been kept a secret before it got out in public. My developer pre-release is around 12 now. How time flies! |
|
Status: Offline |
|
|
kamelito
| |
Re: Deprecated functions and gcc Posted on 16-May-2016 13:01:31
| | [ #8 ] |
|
|
|
Cult Member |
Joined: 26-Jul-2004 Posts: 813
From: Unknown | | |
|
| @eliyahu
I just notice that it is not deprecated functions anymore but deprecated or renamed which is not good IMO. Let's say someone wanna support also OS 3.x how does he know what to do? They should have added a column to be able to tag if it's deprecated or renamed. Kamelito Last edited by kamelit0 on 16-May-2016 at 01:02 PM. Last edited by kamelit0 on 16-May-2016 at 01:02 PM.
|
|
Status: Offline |
|
|