mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
asprintf is GNU specific
Unless we have a replacement, use _USE_GNU
This commit is contained in:
parent
8c9799cede
commit
575874bcbe
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ if (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)")
|
|||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wshadow -Wmissing-prototypes -Wdeclaration-after-statement")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wformat-security")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute -D_USE_GNU")
|
||||
|
||||
set(CSYNC_STRICT ON CACHE BOOL "Strict error checking, enabled -Werror and friends")
|
||||
if (CSYNC_STRICT)
|
||||
|
|
Loading…
Reference in a new issue