Skip to content

Commit

Permalink
cmake warn fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kaoh committed Jul 27, 2023
1 parent f78f210 commit e45b893
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROJECT(globalplatform C)
CMAKE_MINIMUM_REQUIRED(VERSION 3.5.1)
PROJECT(globalplatform C)

cmake_policy(VERSION 3.5.1)

Expand Down
2 changes: 1 addition & 1 deletion globalplatform/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROJECT(globalplatform C)
CMAKE_MINIMUM_REQUIRED(VERSION 3.5.1)
PROJECT(globalplatform C)

cmake_policy(VERSION 3.5.1)

Expand Down
3 changes: 1 addition & 2 deletions globalplatform/src/globalplatform.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,7 @@ OPGP_ERROR_STATUS parse_executable_load_file_data(PBYTE data, DWORD dataLength,
goto end;
}
modulesData->numExecutableModules = data[offset++];
for (int k=0; k<modulesData->numExecutableModules && (offset<dataLength) &&
k < (sizeof(modulesData->executableModules) / sizeof(OPGP_AID)); k++) {
for (int k=0; k<modulesData->numExecutableModules && (offset<dataLength) && k < (sizeof(modulesData->executableModules) / sizeof(OPGP_AID)); k++) {
/* Length of Executable Module AID */
modulesData->executableModules[k].AIDLength = data[offset++];
// check also buffer overrun for AID
Expand Down
2 changes: 1 addition & 1 deletion gppcscconnectionplugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROJECT(gppcscconnectionplugin C)
CMAKE_MINIMUM_REQUIRED(VERSION 3.5.1)
PROJECT(gppcscconnectionplugin C)

cmake_policy(VERSION 3.5.1)

Expand Down
2 changes: 1 addition & 1 deletion gpshell/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROJECT(gpshell C)
CMAKE_MINIMUM_REQUIRED(VERSION 3.5.1)
PROJECT(gpshell C)

cmake_policy(VERSION 3.5.1)

Expand Down

0 comments on commit e45b893

Please sign in to comment.