Skip to content

Commit 816f593

Browse files
author
Felix Exner
authored
Merge pull request #27 from UniversalRobots/fix_warnings
This PR fixes build warnings by * Removing unused code * Bumping the minimum required cmake version to 3.0.2 * Using const qualifiers for size_t variables used to initialize arrays
2 parents 92af9c8 + 76ebaab commit 816f593

File tree

8 files changed

+7
-21
lines changed

8 files changed

+7
-21
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8.12)
1+
cmake_minimum_required(VERSION 3.0.2)
22
project(ur_client_library)
33

44
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/" ${CMAKE_MODULE_PATH})

CMakeModules/FindGTest.CMakeLists.txt.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8.2)
1+
cmake_minimum_required(VERSION 3.0.2)
22

33
project(gtest-download NONE)
44

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ int main(int argc, char* argv[])
8888
```cmake
8989
# CMakeLists.txt
9090
91-
cmake_minimum_required(VERSION 2.8.12)
91+
cmake_minimum_required(VERSION 3.0.2)
9292
project(minimal_example)
9393
9494
find_package(ur_client_library REQUIRED)

examples/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8.12)
1+
cmake_minimum_required(VERSION 3.0.2)
22
project(ur_driver_examples)
33

44
#find_package(ur_client_library REQUIRED)

examples/full_driver.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,6 @@ void handleRobotProgramState(bool program_running)
5454
std::cout << "\033[1;32mProgram running: " << std::boolalpha << program_running << "\033[0m\n" << std::endl;
5555
}
5656

57-
void jogging()
58-
{
59-
vector6d_t joint_position_command;
60-
61-
char c;
62-
63-
std::cout << "Press a key" << std::endl;
64-
while (true)
65-
{
66-
c = getchar();
67-
std::cout << "pressed " << c << std::endl;
68-
}
69-
}
70-
7157
int main(int argc, char* argv[])
7258
{
7359
std::unique_ptr<ToolCommSetup> tool_comm_setup;

include/ur_client_library/comm/reverse_interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class ReverseInterface
128128
*/
129129
std::string readKeepalive()
130130
{
131-
size_t buf_len = 16;
131+
const size_t buf_len = 16;
132132
char buffer[buf_len];
133133

134134
bool read_successful = server_.readLine(buffer, buf_len);

include/ur_client_library/comm/script_sender.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class ScriptSender
9292

9393
bool requestRead()
9494
{
95-
size_t buf_len = 1024;
95+
const size_t buf_len = 1024;
9696
char buffer[buf_len];
9797

9898
bool read_successful = server_.readLine(buffer, buf_len);

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8.12)
1+
cmake_minimum_required(VERSION 3.0.2)
22

33
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../CMakeModules/" ${CMAKE_MODULE_PATH})
44

0 commit comments

Comments
 (0)