Compile a program with GCC with this warning:
warning: control reaches end of non-void function
It means: control to the end of a non-void function. This means that some of your functions that should return a value may not return any value when they reach the end. At this point, it’s a good idea to check to see if each control flow has a return value.
For example, add: return 0;
Read More:
- error:control reaches end of non-void function [-Werror=return-type]
- Front end project runtime prompts syntax error: typeerror: token.type.endswith is not a function solution
- Solve the problem that TeamViewer reaches the maximum number of devices
- Nginx front end and back end separation + service cluster reverse proxy
- The back end cannot receive the parameters passed by the front end
- Record the pits you stepped on – NSS error – 5938 (PR_ END_ OF_ FILE_ ERROR), curl: (35) Encountered end of file
- Deep learning: derivation of sigmoid function and loss function
- Python’s json.loads Invalid control character
- Undefined control sequence
- On the problem that VTK + QT process can’t end after closing the program
- Using code to create control objects, set the event listening method does not execute
- Ioremap function and iounmap() function
- Golang timer function executes a function every few minutes
- Python – get the information of calling function from called function
- Latex bracket size control
- The solution of flashing back after the end of console program running
- The full coverage of the control system of TG pro
- Error: transfer of control bypasses initialization of: variable XXX solution
- Android EditText cursor control, color modification, show and hide
- Failed connect to github.com:443 ; no error and the remote end hung up unexpectedly