Skip to content

Commit 0927c7e

Browse files
committed
Remove unused functions
These functions are reported as functions with no prototype by GCC compiler. However, they're never called, so instead of fixing the warning by creating a function prototype we can remove them. /home/jcerny/openscap/src/OVAL/probes/unix/linux/rpmverify_probe.c: At top level: /home/jcerny/openscap/src/OVAL/probes/unix/linux/rpmverify_probe.c:222:6: warning: no previous prototype for ‘rpmverify_probe_preload’ [-Wmissing-prototypes] void rpmverify_probe_preload() ^~~~~~~~~~~~~~~~~~~~~~~ /home/jcerny/openscap/src/OVAL/probes/unix/linux/rpmverifyfile_probe.c: At top level: /home/jcerny/openscap/src/OVAL/probes/unix/linux/rpmverifyfile_probe.c:306:6: warning: no previous prototype for ‘rpmverifyfile_probe_preload’ [-Wmissing-prototypes] void rpmverifyfile_probe_preload() ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 parent 809048a commit 0927c7e

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/OVAL/probes/unix/linux/rpmverify_probe.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,6 @@ static int rpmverify_collect(probe_ctx *ctx,
219219
return (ret);
220220
}
221221

222-
void rpmverify_probe_preload()
223-
{
224-
rpmLibsPreload();
225-
}
226-
227222
int rpmverify_probe_offline_mode_supported()
228223
{
229224
// TODO: Switch this to OFFLINE_MODE_OWN once rpmtsSetRootDir is fully supported by librpm

src/OVAL/probes/unix/linux/rpmverifyfile_probe.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,6 @@ static int rpmverify_collect(probe_ctx *ctx,
303303
return (ret);
304304
}
305305

306-
void rpmverifyfile_probe_preload()
307-
{
308-
rpmLibsPreload();
309-
}
310-
311306
int rpmverifyfile_probe_offline_mode_supported()
312307
{
313308
// TODO: Switch this to OFFLINE_MODE_OWN once rpmtsSetRootDir is fully supported by librpm

0 commit comments

Comments
 (0)