Skip to content

Commit 2565871

Browse files
evgenyzTom Stellard
andcommitted
Fix implicitly declared function
The function 'rpmFreeCrypto' is implicitly declared. This will be forbidden in future versions of GCC (the -Werror=implicit-function-declaration behaviour will be enforced). On top of that, as an anti-regression measure, the flag -Werror=implicit-function-declaration is now part of the CMake config. Co-authored-by: Tom Stellard <[email protected]>
1 parent aa9a484 commit 2565871

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ if (MSVC)
516516
endif()
517517

518518
if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_C_COMPILER_ID} STREQUAL "Clang")
519-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pipe -W -Wall -Wnonnull -Wshadow -Wformat -Wundef -Wno-unused-parameter -Wmissing-prototypes -Wno-unknown-pragmas -Wno-int-conversion -D_GNU_SOURCE -std=c99")
519+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pipe -W -Wall -Wnonnull -Wshadow -Wformat -Wundef -Wno-unused-parameter -Wmissing-prototypes -Wno-unknown-pragmas -Wno-int-conversion -Werror=implicit-function-declaration -D_GNU_SOURCE -std=c99")
520520
endif()
521521
if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
522522
add_link_options(-lkvm -lm -lprocstat)

src/OVAL/probes/unix/linux/rpm-helper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <rpm/rpmts.h>
3131
#include <rpm/rpmmacro.h>
3232
#include <rpm/rpmlog.h>
33+
#include <rpm/rpmpgp.h>
3334
#include <rpm/header.h>
3435

3536
#include <pthread.h>

0 commit comments

Comments
 (0)