[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[openssl-gost] [gost-engine/engine] ca0646: CMakeLists.txt: Fix warning on gcc-9



  Branch: refs/heads/openssl_1_1_1
  Home:   https://github.com/gost-engine/engine
  Commit: ca0646fce4b739c83f2501ec26968919467074d8
      https://github.com/gost-engine/engine/commit/ca0646fce4b739c83f2501ec26968919467074d8
  Author: Vitaly Chikunov <vt@altlinux.org>
  Date:   2020-10-29 (Thu, 29 Oct 2020)

  Changed paths:
    M CMakeLists.txt

  Log Message:
  -----------
  CMakeLists.txt: Fix warning on gcc-9

/root/rpmbuild/BUILD/openssl-gost-engine-1.1.1/CMakeFiles/CMakeTmp/src.c:4:14: warning: initialization of 'int *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types]
    4 |     int *p = buf + 1;
      |              ^~~
/root/rpmbuild/BUILD/openssl-gost-engine-1.1.1/CMakeFiles/CMakeTmp/src.c:5:14: warning: initialization of 'int *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types]
    5 |     int *q = buf + 2;
      |              ^~~

Reported-by: Ilya Shipitsin <https://github.com/chipitsine>
Fixes: #288
(cherry picked from commit 6c7addf78b7fe7c8841d4cda6c9d710e4992c7a6)