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 8822557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:08:10+00:00 2026-06-14T06:08:10+00:00

I am passing a Class type as a parameter to a method, and the

  • 0

I am passing a Class type as a parameter to a method, and the LLVM compiler in XCode 4.5.2 generates a warning, “multiple methods named ‘foo’ found”, which is understandable, but undesired in this case. How do I get rid of this warning, either by disabling this type of warning, or by making changes to my code?

- (void) fooWithClass: (Class) theClass
{
    [theClass aClassMethodOfThatClass];
}

more specifically, the parameter is a subclass of a certain base class, and i am sending a message which is declared in that base class.

  • 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-06-14T06:08:11+00:00Added an answer on June 14, 2026 at 6:08 am

    To disable the warning, you can check the clang manual. Like this:

    #pragma GCC diagnostic push
    #pragma GCC diagnostic ignored "-Wall"
        [theClass aClassMethodOfThatClass];
    #pragma GCC diagnostic pop
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm passing to single JSON type parameter and multiple JSON type parameters to Asp.Net.
I have some class that I'm passing as a result of a service method,
I'm trying to call a method of the below (Scroll animation class) type from
I'm writing a WCF webservice and passing in a complex type as a parameter
The compiler error is The method execute(ArrayList<String>...) in the type AsyncTask<ArrayList<String>,Void,ArrayList<String>> is not applicable
I was wondering what is the best practice re. passing (another class) amongst two
I like to create an instance of a custom class by passing it a
I have a Class A which runs activity via startActivityForResult by passing Intent to
I'm passing data between my controller and my view using a ViewModel class. When
I have an auto pointer class and in the constructor I am passing in

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.