@@ -, +, @@ --- hardinfo/dt_util.c | 3 +++ modules/benchmark/bench_results.c | 3 +++ modules/computer.c | 5 +++++ modules/computer/boots.c | 3 +++ modules/computer/os.c | 3 +++ modules/devices.c | 9 +++++++++ modules/devices/printers.c | 2 ++ modules/network.c | 9 +++++++++ 8 files changed, 37 insertions(+) --- a/hardinfo/dt_util.c +++ a/hardinfo/dt_util.c @@ -29,6 +29,9 @@ #include "dt_util.h" #include "appf.h" +/* Prototype */ +int dtr_inh_find(dtr_obj *, char *, int); + static struct { char *name; int type; } prop_types[] = { --- a/modules/benchmark/bench_results.c +++ a/modules/benchmark/bench_results.c @@ -21,6 +21,9 @@ #include #include +/* Suppress implicit declaration warnings */ +extern int cpu_procs_cores_threads(int *p, int *c, int *t); + /* in dmi_memory.c */ uint64_t memory_devices_get_system_memory_MiB(); gchar *memory_devices_get_system_memory_types_str(); --- a/modules/computer.c +++ a/modules/computer.c @@ -40,6 +40,11 @@ #define THISORUNK(t) ( (t) ? t : _("(Unknown)") ) +/* Suppress implicit declaration warnings */ +extern void scan_languages(OperatingSystem * os); +extern void scan_boots_real(void); +extern void scan_groups_do(void); + /* Callbacks */ gchar *callback_summary(void); gchar *callback_os(void); --- a/modules/computer/boots.c +++ a/modules/computer/boots.c @@ -21,6 +21,9 @@ #include "hardinfo.h" #include "computer.h" +/* Suppress implicit declaration warnings */ +void scan_os(gboolean reload); + void scan_boots_real(void) { --- a/modules/computer/os.c +++ a/modules/computer/os.c @@ -23,6 +23,9 @@ #include "computer.h" #include "distro_flavors.h" +/* Suppress implicit declaration warnings */ +extern void scan_languages(OperatingSystem * os); + static gchar * get_libc_version(void) { --- a/modules/devices.c +++ a/modules/devices.c @@ -40,6 +40,15 @@ #include "dt_util.h" #include "udisks2_util.h" +/* Suppress implicit declaration warnings */ +extern int cpu_procs_cores_threads(int *p, int *c, int *t); +extern void __scan_dmi(void); +extern void __scan_dtree(void); +extern void __scan_ide_devices(void); +extern void __scan_scsi_devices(void); +extern void __scan_input_devices(void); +extern void __scan_usb(void); + gchar *callback_processors(); gchar *callback_gpu(); gchar *callback_monitors(); --- a/modules/devices/printers.c +++ a/modules/devices/printers.c @@ -16,6 +16,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +/* Need for strptime() */ +#define _XOPEN_SOURCE #include #include #include --- a/modules/network.c +++ a/modules/network.c @@ -37,6 +37,11 @@ #include +/* Need for inet_addr() */ +#include +#include +#include + #include "network.h" /* Callbacks */ @@ -57,6 +62,10 @@ void scan_shares(gboolean reload); void scan_arp(gboolean reload); void scan_statistics(gboolean reload); +/* Suppress implicit declaration warnings */ +extern void scan_samba(void); +extern void scan_nfs_shared_directories(void); + static ModuleEntry entries[] = { {N_("Interfaces"), "network-interface.png", callback_network, scan_network, MODULE_FLAG_NONE}, {N_("IP Connections"), "network-connections.png", callback_connections, scan_connections, MODULE_FLAG_NONE}, --