From a44c8decbc78e18ff98ac31c7dfd7dad52292fbd Mon Sep 17 00:00:00 2001 From: olszomal Date: Tue, 21 Jun 2022 12:43:29 +0200 Subject: [PATCH] Fixed clang -Wembedded-directive warning: embedding a directive within macro arguments has undefined behavior --- osslsigncode.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/osslsigncode.c b/osslsigncode.c index 043b41d..453bff7 100644 --- a/osslsigncode.c +++ b/osslsigncode.c @@ -5577,14 +5577,15 @@ static PKCS7 *cat_presign_file(file_type_t type, cmd_type_t cmd, FILE_HEADER *he static void print_version() { +#ifdef ENABLE_CURL printf(PACKAGE_STRING ", using:\n\t%s (Library: %s)\n\t%s\n", OPENSSL_VERSION_TEXT, OpenSSL_version(OPENSSL_VERSION), -#ifdef ENABLE_CURL - curl_version() + curl_version()); #else - "no libcurl available" + printf(PACKAGE_STRING ", using:\n\t%s (Library: %s)\n\t%s\n", + OPENSSL_VERSION_TEXT, OpenSSL_version(OPENSSL_VERSION), + "no libcurl available"); #endif /* ENABLE_CURL */ - ); printf("\nPlease send bug-reports to " PACKAGE_BUGREPORT "\n\n"); }