U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Gcc compile option proposal
Gcc compile option proposal [message #39090] Thu, 14 February 2013 19:33 Go to previous message
Didier is currently offline  Didier
Messages: 740
Registered: November 2008
Location: France
Contributor
Hi all,

While doing some corrections for MSC on code developped using GCC I noticed that MSC gives an error when we forget to return a value in a function that requires one.

int  myFunction()
{
printf("Hello World !!");
// no return value
}

This code does not compile in MSC while it compile perfectly in GCC when using Theide.

I think we should add the following option to GCC config:
-Werror=return-type

With this GCC and MSC have the same compilation behaviour.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Request: completion 64 bit support in Draw and Stream
Next Topic: Core/Rpc and VC 2012
Goto Forum:
  


Current Time: Fri May 01 13:24:17 GMT+2 2026

Total time taken to generate the page: 0.00604 seconds