diff options
Diffstat (limited to 'recipes-extended/xen/files/vtpm-cmake-Wextra.patch')
| -rw-r--r-- | recipes-extended/xen/files/vtpm-cmake-Wextra.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes-extended/xen/files/vtpm-cmake-Wextra.patch b/recipes-extended/xen/files/vtpm-cmake-Wextra.patch new file mode 100644 index 00000000..5fee4e9a --- /dev/null +++ b/recipes-extended/xen/files/vtpm-cmake-Wextra.patch | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | --- | ||
| 2 | CMakeLists.txt | 3 ++- | ||
| 3 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 4 | |||
| 5 | Index: tpm_emulator-x86_64/CMakeLists.txt | ||
| 6 | =================================================================== | ||
| 7 | --- a/CMakeLists.txt | ||
| 8 | +++ b/CMakeLists.txt | ||
| 9 | @@ -40,10 +40,11 @@ set(TPM_STORAGE_NAME "/var/lib/tpm/tpm_e | ||
| 10 | set(TPM_DEVICE_NAME "/dev/tpm") | ||
| 11 | endif() | ||
| 12 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) | ||
| 13 | -add_definitions(-Wall -Werror -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings) | ||
| 14 | +add_definitions(-Wall -Werror) | ||
| 15 | if("${CMAKE_SYSTEM}" MATCHES "Linux") | ||
| 16 | add_definitions(-Wextra) | ||
| 17 | endif() | ||
| 18 | +add_definitions(-Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings) | ||
| 19 | if(USE_OPENSSL) | ||
| 20 | add_definitions(-DUSE_OPENSSL) | ||
| 21 | endif() | ||
