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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:29:27+00:00 2026-05-28T17:29:27+00:00

When I build using a Makefile I add -Wall -g to my gcc args

  • 0

When I build using a Makefile I add -Wall -g to my gcc args to get warnings.

So when I build this code:

#include <stdio.h>

int main()
{
}

I get this warning:

main.c: In function ‘main’:
main.c:10: warning: control reaches end of non-void function

However when I build the same code in XCode I don’t see any warnings.

I think XCode is using LLVM instead of GCC but there must be an equivelant. How can I turn this on in XCode?

  • 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-28T17:29:28+00:00Added an answer on May 28, 2026 at 5:29 pm

    I think XCode is using LLVM instead of GCC but there must be an equivelant. How can I turn this on in XCode?

    You can choose the compiler from the build options area.

    1. Click the project in the navigator
    2. Click the desired target
    3. Click Build Settings
    4. set GCC_VERSION in the search field below.
    5. Choose the compiler to use.

    If you clear the search field now, you can scroll down to enable specific warnings.

    Note that LLVM + GCC is the GCC front end with a LLVM optimizer.

    Clang doesn’t support all the options GCC does. It also supports a few new ones, or differences. So it’s a good idea to build against both.

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

Sidebar

Related Questions

I have an application which i build using gcc on linux host for ARM
I am trying to get SpecUnit to run in a continuous integration build using
I'm trying to compile a linux kernel module using a Makefile: obj-m += main.o
This is my first time using CMake and I'm trying to build QJSon, a
I'm trying to build a hello world using GTK, which includes the line: #include
i have a small java project i want to build using a makefile, the
I have created an 'External Build Project' in Xcode 4 using a makefile. The
I have this C++ project which compiles using a Makefile, and sometimes when (
1.Download source from OpenSSL (openssl-1.0.0d). 2.Build it static using this: > perl Configure VC-WIN32
I'm using a Makefile to build an embedded project. I've inherited the project from

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.