Skip to content

Commit

Permalink
Harmonize main() signature, drop unused definition
Browse files Browse the repository at this point in the history
Solves #138.
  • Loading branch information
PeterBowman committed Oct 6, 2018
1 parent 45d01fa commit edf35f4
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 16 deletions.
4 changes: 0 additions & 4 deletions src/programs/rdServer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ target_link_libraries(rdServer YARP::YARP_init
ServerLib
ROBOTICSLAB::ColorDebug)

if(WIN32)
target_compile_definitions(rdServer PUBLIC SDL_MAIN_HANDLED)
endif()

install(TARGETS rdServer DESTINATION ${CMAKE_INSTALL_BINDIR})

# Organize targets in folders (Visual Studio)
Expand Down
4 changes: 0 additions & 4 deletions src/programs/robotDevastation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ target_link_libraries(robotDevastation YARP::YARP_OS
ASROB::RobotInterfaces
ROBOTICSLAB::ColorDebug)

if(WIN32)
target_compile_definitions(robotDevastation PUBLIC SDL_MAIN_HANDLED)
endif()

install(TARGETS robotDevastation DESTINATION ${CMAKE_INSTALL_BINDIR})

# Organize targets in folders (Visual Studio)
Expand Down
4 changes: 0 additions & 4 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ add_subdirectory(${GTestSources_SOURCE_DIR} ${CMAKE_BINARY_DIR}/gtest)

include_directories(${GTestSources_INCLUDE_DIR})

if(WIN32)
add_definitions(-DSDL_MAIN_HANDLED)
endif()

# UI related
add_executable(testSDLTextDisplay testSDLTextDisplay.cpp)
target_link_libraries(testSDLTextDisplay YARP::YARP_OS ${SDL2_LIBRARY} ${SDL2_TTF_LIBRARIES})
Expand Down
2 changes: 1 addition & 1 deletion tests/testInputManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class TestEventListener : public InputEventListener

} // namespace rd

int main(void)
int main(int argc, char *argv[])
{
using namespace rd;
using namespace rd::test;
Expand Down
2 changes: 1 addition & 1 deletion tests/testMockScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

using namespace rd;

int main()
int main(int argc, char *argv[])
{
//-- Initialization
initSDL();
Expand Down
2 changes: 1 addition & 1 deletion tests/testSDLScreenManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

using namespace rd;

int main()
int main(int argc, char *argv[])
{
//-- Start SDL, Create SDLScreen Manager
SDLScreenManager::RegisterManager();
Expand Down
2 changes: 1 addition & 1 deletion tests/testSDLTextDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@



int main(void)
int main(int argc, char *argv[])
{
//-- Configure Resourcefinder to ind the real path to the resources
yarp::os::ResourceFinder rf;
Expand Down

0 comments on commit edf35f4

Please sign in to comment.