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 92eebc6c..350042b0 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 4a660868..babb9fd6 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 e024a0f9..f49ea6df 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 ca4b70a1..7ab0d3cd 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 e944eb63..8be2f478 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 7e5d290a..f5a16815 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 8164b4f0..4edc2b7d 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 36fa6400..602be881 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 2130d608..2c39c90c 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 7485f1dc..76167185 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 84cce8bb..d2169e1b 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 13ed154f..b65dd93f 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 528a8aa4..6bdb2790 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; }