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

Samples/DirectMLNpuInference/main: switch from void main to int main #642

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pratikpc
Copy link

void main is a non-standard C++ extension.

From https://learn.microsoft.com/en-us/cpp/cpp/main-function-command-line-args?view=msvc-170

As a Microsoft extension, the main and wmain functions can be declared as returning void (no return value). This extension is also available in some other compilers, but its use isn't recommended. It's available for symmetry when main doesn't return a value.

…main


void main is a non-standard C++ extension. From https://learn.microsoft.com/en-us/cpp/cpp/main-function-command-line-args?view=msvc-170 As a Microsoft extension, the main and wmain functions can be declared as returning void (no return value). This extension is also available in some other compilers, but its use isn't recommended. It's available for symmetry when main doesn't return a value.
@pratikpc pratikpc changed the title Samples/DirectMLNpuInference/main switch from void main to int main Samples/DirectMLNpuInference/main: switch from void main to int main Aug 30, 2024
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.

1 participant