Re: Const qualifier conversion warnings
Re: Const qualifier conversion warnings
- Subject: Re: Const qualifier conversion warnings
- From: Bryan Pietrzak <email@hidden>
- Date: Fri, 3 Jun 2005 13:19:07 -0500
On Jun 3, 2005, at 8:08 AM, Theodore H. Smith wrote:
How do I disable Xcode from telling me about converting to/from const?
I find this a really time consuming thing to fix, because consts
generally spread throughout my code. As I make one function const, so
it requires me to make the functions it calls consts, and before long
I'm having to totally redesign all of my code for const compliance.
It's much easier to just not have anything as const, even if it really
is a const. I've been developnig software in C for many years now, and
I've never had a problem with me calling a function that overwrites
stuff that it shouldn't because the data should have been const...
So how do I disable this warning?
I find this a really odd request.
Rather than just do the Right Thing and use const as it is intended and
write your code so that the compiler can help you make fewer mistakes,
you purposely want to lobotomize the compiler because you've been
developing for years and never had a problem? (that you know of :)
I dunno, but it seems the easier AND right thing to do is to simply use
const correctly in your code. <shrug> Certainly makes for better long
term code with respect to correctness and readability.
Bryan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden