mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 13:15:32 +02:00
MDEV-24577: Fix warnings generated during compilation of plugin/auth_pam/testing/pam_mariadb_mtr.c on FreeBSD
Compiler warnings generated on building MariaDB server for BSD has the same
reason as in case building is performed on MacOS. Both platforms do use
clang as a C/C++ compiler. So, fix the compiler warnings in case the compiler
is clang doesn't matter what kind of building platform do we use for building.
This is a follow-up patch for the following bug reports:
MDEV-23564: CMAKE failing due to deprecated Apple GSS method
MDEV-23935: Fix warnings generated during compilation of
plugin/auth_pam/testing/pam_mariadb_mtr.c on MacOS
This commit is contained in:
parent
b87828b6c8
commit
8bcddb02b7
3 changed files with 3 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ ADD_LIBRARY(pam_mariadb_mtr MODULE pam_mariadb_mtr.c)
|
|||
SET_TARGET_PROPERTIES (pam_mariadb_mtr PROPERTIES PREFIX "")
|
||||
TARGET_LINK_LIBRARIES(pam_mariadb_mtr pam)
|
||||
|
||||
IF(APPLE)
|
||||
IF(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||
SET_SOURCE_FILES_PROPERTIES(
|
||||
pam_mariadb_mtr.c
|
||||
PROPERTY COMPILE_FLAGS "-Wno-incompatible-pointer-types-discards-qualifiers")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue