Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable -Wreturn-type checking

I am trying to compile Model 5.0 under OS X 10.8.3 I am getting a lot of warnings and errors while compiling. Several of those error are something like

xwin.c:31523:2: error: non-void function 'scrfrg' should return a value
      [-Wreturn-type]
        return;

What flag in C/C++ checks that? I want to disable it and try to finish the compilation. I'm not sure if this is the best forum to ask this, sorry for the inconvenience.

like image 979
BRabbit27 Avatar asked Apr 30 '13 15:04

BRabbit27


People also ask

How do I turn off disk checking in Windows 10?

On the Command Prompt window, type the command <chkntfs /x C:> if your target is to disable a disk check task on the C: drive.

Why does chkdsk run on startup?

If you notice that the check disk utility keeps running after every startup, it means that the hard drive is failing, and that should cause alarm.

How do I skip a disk check in Windows 11?

Use CMD to Stop Disk Checking Right-click on the command prompt and open "Run as Administrator". Below are some key points to remember to stop disk checking: Replace C with the letter of the drive you want to stop disk checking on startup. The /x is the parameter to disable the auto-check on startup of the select drive.


1 Answers

As per the link you posted, seems you're using gcc. You can disable a lot of error/warning checks with a -Wno-xxxx flag, in your case -Wreturn-type is causing an error so you can disable it with:

-Wno-return-type

Frankly, it's better to just fix the errors/warnings when you can, and that one seems easy to fix.

like image 196
Mike Avatar answered Sep 20 '22 09:09

Mike