From ca5ca650040580a15890136b953d82d51c4077a0 Mon Sep 17 00:00:00 2001 From: Shiv <91686009+HelloShiv@users.noreply.github.com> Date: Mon, 23 Jan 2023 14:30:48 +0530 Subject: [PATCH] Removed return EXIT_SUCCESS and cstdlib --- doc/mainpage.hpp | 2 -- examples/X11/X11.cpp | 2 -- examples/ftp/Ftp.cpp | 2 -- examples/island/Island.cpp | 2 -- examples/shader/Shader.cpp | 2 -- examples/sockets/Sockets.cpp | 3 --- examples/sound/Sound.cpp | 2 -- examples/sound_capture/SoundCapture.cpp | 2 -- examples/voip/VoIP.cpp | 3 --- examples/vulkan/Vulkan.cpp | 2 -- examples/win32/Win32.cpp | 2 -- tools/xcode/templates/SFML/SFML App.xctemplate/main.cpp | 2 -- tools/xcode/templates/SFML/SFML CLT.xctemplate/main.cpp | 2 -- 13 files changed, 28 deletions(-) diff --git a/doc/mainpage.hpp b/doc/mainpage.hpp index 92eebc6cd..350042b0c 100644 --- a/doc/mainpage.hpp +++ b/doc/mainpage.hpp @@ -63,8 +63,6 @@ /// // Update the window /// window.display(); /// } -/// -/// return EXIT_SUCCESS; /// } /// \endcode //////////////////////////////////////////////////////////// diff --git a/examples/X11/X11.cpp b/examples/X11/X11.cpp index 4a6608687..babb9fd61 100644 --- a/examples/X11/X11.cpp +++ b/examples/X11/X11.cpp @@ -299,6 +299,4 @@ int main() // Close the display XCloseDisplay(display); - - return EXIT_SUCCESS; } diff --git a/examples/ftp/Ftp.cpp b/examples/ftp/Ftp.cpp index e024a0f9d..f49ea6df5 100644 --- a/examples/ftp/Ftp.cpp +++ b/examples/ftp/Ftp.cpp @@ -204,6 +204,4 @@ int main() std::cout << "Press enter to exit..." << std::endl; std::cin.ignore(10000, '\n'); std::cin.ignore(10000, '\n'); - - return EXIT_SUCCESS; } diff --git a/examples/island/Island.cpp b/examples/island/Island.cpp index ca4b70a11..7ab0d3cd0 100644 --- a/examples/island/Island.cpp +++ b/examples/island/Island.cpp @@ -276,8 +276,6 @@ int main() threads.back().join(); threads.pop_back(); } - - return EXIT_SUCCESS; } diff --git a/examples/shader/Shader.cpp b/examples/shader/Shader.cpp index e944eb634..8be2f478c 100644 --- a/examples/shader/Shader.cpp +++ b/examples/shader/Shader.cpp @@ -456,6 +456,4 @@ int main() // Finally, display the rendered frame on screen window.display(); } - - return EXIT_SUCCESS; } diff --git a/examples/sockets/Sockets.cpp b/examples/sockets/Sockets.cpp index 7e5d290aa..f5a16815c 100644 --- a/examples/sockets/Sockets.cpp +++ b/examples/sockets/Sockets.cpp @@ -2,7 +2,6 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include @@ -54,6 +53,4 @@ int main() std::cout << "Press enter to exit..." << std::endl; std::cin.ignore(10000, '\n'); std::cin.ignore(10000, '\n'); - - return EXIT_SUCCESS; } diff --git a/examples/sound/Sound.cpp b/examples/sound/Sound.cpp index 8164b4f0f..4edc2b7d4 100644 --- a/examples/sound/Sound.cpp +++ b/examples/sound/Sound.cpp @@ -100,6 +100,4 @@ int main() // Wait until the user presses 'enter' key std::cout << "Press enter to exit..." << std::endl; std::cin.ignore(10000, '\n'); - - return EXIT_SUCCESS; } diff --git a/examples/sound_capture/SoundCapture.cpp b/examples/sound_capture/SoundCapture.cpp index 36fa64005..602be8816 100644 --- a/examples/sound_capture/SoundCapture.cpp +++ b/examples/sound_capture/SoundCapture.cpp @@ -97,6 +97,4 @@ int main() // Wait until the user presses 'enter' key std::cout << "Press enter to exit..." << std::endl; std::cin.ignore(10000, '\n'); - - return EXIT_SUCCESS; } diff --git a/examples/voip/VoIP.cpp b/examples/voip/VoIP.cpp index 2130d608e..2c39c90c9 100644 --- a/examples/voip/VoIP.cpp +++ b/examples/voip/VoIP.cpp @@ -2,7 +2,6 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include @@ -44,6 +43,4 @@ int main() // Wait until the user presses 'enter' key std::cout << "Press enter to exit..." << std::endl; std::cin.ignore(10000, '\n'); - - return EXIT_SUCCESS; } diff --git a/examples/vulkan/Vulkan.cpp b/examples/vulkan/Vulkan.cpp index 7485f1dc7..761671851 100644 --- a/examples/vulkan/Vulkan.cpp +++ b/examples/vulkan/Vulkan.cpp @@ -2630,6 +2630,4 @@ int main() VulkanExample example; example.run(); - - return EXIT_SUCCESS; } diff --git a/examples/win32/Win32.cpp b/examples/win32/Win32.cpp index 84cce8bbb..d2169e1be 100644 --- a/examples/win32/Win32.cpp +++ b/examples/win32/Win32.cpp @@ -165,6 +165,4 @@ int main() // Don't forget to unregister the window class UnregisterClass(TEXT("SFML App"), instance); - - return EXIT_SUCCESS; } diff --git a/tools/xcode/templates/SFML/SFML App.xctemplate/main.cpp b/tools/xcode/templates/SFML/SFML App.xctemplate/main.cpp index 13ed154fc..b65dd93f1 100644 --- a/tools/xcode/templates/SFML/SFML App.xctemplate/main.cpp +++ b/tools/xcode/templates/SFML/SFML App.xctemplate/main.cpp @@ -91,6 +91,4 @@ int main(int, char const**) // Update the window window.display(); } - - return EXIT_SUCCESS; } diff --git a/tools/xcode/templates/SFML/SFML CLT.xctemplate/main.cpp b/tools/xcode/templates/SFML/SFML CLT.xctemplate/main.cpp index 528a8aa4d..6bdb27907 100644 --- a/tools/xcode/templates/SFML/SFML CLT.xctemplate/main.cpp +++ b/tools/xcode/templates/SFML/SFML CLT.xctemplate/main.cpp @@ -89,6 +89,4 @@ int main(int argc, char const** argv) // Update the window window.display(); } - - return EXIT_SUCCESS; }