]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - CMakeLists.txt
CMakeLists.txt: Fix warning on gcc-9
[openssl-gost/engine.git] / CMakeLists.txt
index 112bbec7b7e2c3a1070c713d79143929e2db66e1..e6337c9e04709309605625169247dd6b77fddfec 100644 (file)
@@ -69,8 +69,8 @@ endif()
 check_c_source_runs("
   int main(void) {
     char buf[16] = { 0, 1, 2 };
-    int *p = buf + 1;
-    int *q = buf + 2;
+    int *p = (int *)(buf + 1);
+    int *q = (int *)(buf + 2);
     return (*p == *q);
   }
   " RELAXED_ALIGNMENT)