-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interfaces-plugin: switch to C11 instead of C99
- Loading branch information
Mateo Cindrić
committed
Sep 26, 2022
1 parent
191160f
commit f6ef7dd
Showing
10 changed files
with
174 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99") | ||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic") | ||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") | ||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra") | ||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wconversion") | ||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wcast-align") | ||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wstrict-prototypes") | ||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wuninitialized") | ||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wshadow") | ||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat=2") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wconversion") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wcast-align") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wstrict-prototypes") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wuninitialized") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wshadow") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat=2") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GNU_SOURCE") | ||
|
||
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 5) | ||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=incompatible-pointer-types") | ||
endif () | ||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-parameter") | ||
if (CMAKE_C_COMPILER_ID MATCHES "Clang") | ||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-newline-eof") | ||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-gnu-zero-variadic-macro-arguments") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=incompatible-pointer-types") | ||
endif() | ||
|
||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-parameter") | ||
|
||
if(CMAKE_C_COMPILER_ID MATCHES "Clang") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-newline-eof") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-gnu-zero-variadic-macro-arguments") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
#include "interface/change.h" | ||
|
||
#include <linux/limits.h> | ||
#include <srpc.h> | ||
#include <sysrepo.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.