Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make main return type explicit #3

Closed
wants to merge 1 commit into from
Closed

Conversation

RMeli
Copy link

@RMeli RMeli commented Jun 21, 2021

Compiling with GCC 10 on macOS results in the following warning:

nsc.c:892:1: warning: return type defaults to 'int' [-Wimplicit-int]
  892 | main(int argc,char **argv){
      | ^~~~

This PR makes the return type of main explicit, so that the warning disappears.

@douguet
Copy link
Collaborator

douguet commented Aug 23, 2021

The new source file nsc.c takes into account the comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants