Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 744085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:56:16+00:00 2026-05-14T08:56:16+00:00

Foo *oFoo = [[[Foo alloc] init] autorelease]; This is how I was taught to

  • 0
Foo *oFoo = [[[Foo alloc] init] autorelease];

This is how I was taught to program in Objective C, yet the CLang error checker complains that the initial value was never read. But oFoo is an object with properties. oFoo itself has no single value. The property values are what matter.

oFoo.PropertyA = 1;
oFoo.PropertyB = @"Hello, World."

Should I just ignore this? Is this worth fixing? What is the fix, seeing that “initial value” is meaningless in my context?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T08:56:16+00:00Added an answer on May 14, 2026 at 8:56 am

    Usually that means:

    1. You’ve created a variable.
    2. You’ve assigned some value to a variable. Doesn’t matter, to itself or to it’s properties.
    3. You’ve “recreated” this value or finished block (method/for-each/etc.).

    For a simple type:

    int a;
    a = 2;
    a = 3;
    

    First value (2) is never used. Similar things can happen with objects, for example:

    Foo *oFoo = [[[Foo alloc] init] autorelease];
    
    oFoo.PropertyA = 1;
    oFoo.PropertyB = @"Hello, World."
    
    oFoo = [[[Foo alloc] init] autorelease];
    

    Here first alloc-init block created a value that was overridden by second alloc-init. And error tells something like that.

    Instead of second alloc-init block I can close method implementation, that will be similar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

#foo {width: 300px; height: 400px; overflow: hidden;} <div id=foo></div> this.someimage = randomImageUrl; $(foo).innerHTML =
foo\r\nbar.replace(/(foo).+/m, bar) Hello. I can not understand why this code does not replace foo
class foo { public: void say_type_name() { std::cout << typeid(this).name() << std::endl; } };
My project directory looks like this: /project Makefile main /src main.cpp foo.cpp foo.h bar.cpp
This problem is in defining and declaring a function template in a namespace that
I have a procedure like this: create procedure Checkout @Foo nvarchar(20), @cost float as
ulong foo = 0; ulong bar = 0UL;//this seems redundant and unnecessary. but I
Essentially, what I want to do is this: gcc foo.c -o foo.o ar rcs
This JavaScript code... var o = {}; console.dir(o); o.foo = bar; console.dir(o); ...results in
foo(int &bar) { bar = 5; } The call to this function would be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.