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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:14:47+00:00 2026-05-26T10:14:47+00:00

There are some files in my iOS project that have some warnings, and I

  • 0

There are some files in my iOS project that have some warnings, and I want to ignore those warnings. I don’t want to disable warnings in the entire project (know how to do that), just some specific files. So, is there a way to completely ignore all warnings from a specific file?

I’m using LLVM 3.0 and Clang on Xcode 4.2.

  • 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-26T10:14:48+00:00Added an answer on May 26, 2026 at 10:14 am

    if you’re just using clang, then you should use the pragma syntax for sources you maintain (assuming it is impossible to remove the warning by altering the program appropriately).

    here is the syntax:

    #pragma clang diagnostic push
    #pragma clang diagnostic ignored "-Wmultichar"
    
    char b = 'df'; // no warning.
    
    #pragma clang diagnostic pop
    

    if these are programs you cannot change and don’t maintain, you should specify the warning(s) to disable for the file, rather than all. to disable all, you can add the per file argument -w. sources change, and some warnings do (or do not) apply with different build settings. clang’s messages can tell you what flag equates to the generated warning.

    To use Xcode to alter a file’s build flags:

    • select the target
    • select the build phase
    • locate the file to modify the arguments in the “Compile Sources” phase
    • double click its “Compiler Flags” cell to edit
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have many js files, with some naming convention. If there any tool that
I got some binary files containing integers. Is there some nice Unix command, that
Is there some Eclipse tooling that would allow the comparison of XML files as
I'm working on some code that deals with parsing files (mainly XML, but there
I have an iOS (Obj-C) project that uses ARC (Automatic Reference Counting). According to
I have an iOS project that I've put in Dropbox to work with a
I have copied some files across from one project to another. The code simply
How to find potentially duplicate files in a given directory? Is there some existing
There are some web-based services such as converting .flv files into .mp3 files, .doc
There is a folder which contains some random files: file1.txt file2.exe file3.cpp file4.exe How

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.