ALT Linux Bugzilla
– Attachment 8836 Details for
Bug 33806
Прошу обновить версию
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
updated -Wipldecl-* related patch
0002-adjusted-01-fix-impldecl.patch-by-klark.patch (text/plain), 4.58 KB, created by
Michael Shigorin
on 2020-06-15 13:37:46 MSK
(
hide
)
Description:
updated -Wipldecl-* related patch
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2020-06-15 13:37:46 MSK
Size:
4.58 KB
patch
obsolete
>From b58ae242df40125628b63b4e9b1d8dd3afa7cce1 Mon Sep 17 00:00:00 2001 >From: Michael Shigorin <mike@altlinux.org> >Date: Mon, 15 Jun 2020 11:42:32 +0300 >Subject: [PATCH 2/2] adjusted 01-fix-impldecl.patch by klark@ > >Architecture maintainers noted that gc687f60 would have >troubles on their arches due to presence of -Wimplicit-* >related warnings; some affected files #include <inttypes.h> >as of g3ff7143. > >Author: Leonid Krivoshein <klark.devel@gmail.com> >See-also: http://bugzilla.altlinux.org/33806 >--- > 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(+) > >diff --git a/hardinfo/dt_util.c b/hardinfo/dt_util.c >index 2d1b60a..a8f6a16 100644 >--- a/hardinfo/dt_util.c >+++ b/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[] = { >diff --git a/modules/benchmark/bench_results.c b/modules/benchmark/bench_results.c >index cd8cc6e..7cf88ba 100644 >--- a/modules/benchmark/bench_results.c >+++ b/modules/benchmark/bench_results.c >@@ -21,6 +21,9 @@ > #include <inttypes.h> > #include <json-glib/json-glib.h> > >+/* 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(); >diff --git a/modules/computer.c b/modules/computer.c >index 9bb69f7..0d8a1e0 100644 >--- a/modules/computer.c >+++ b/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); >diff --git a/modules/computer/boots.c b/modules/computer/boots.c >index 6312299..9655ac0 100644 >--- a/modules/computer/boots.c >+++ b/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) > { >diff --git a/modules/computer/os.c b/modules/computer/os.c >index 14f61e0..f27aec8 100644 >--- a/modules/computer/os.c >+++ b/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) > { >diff --git a/modules/devices.c b/modules/devices.c >index a2d3d75..8c178f1 100644 >--- a/modules/devices.c >+++ b/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(); >diff --git a/modules/devices/printers.c b/modules/devices/printers.c >index aefeaed..3830c1e 100644 >--- a/modules/devices/printers.c >+++ b/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 <stdio.h> > #include <stdlib.h> > #include <time.h> >diff --git a/modules/network.c b/modules/network.c >index 300cc04..8518c12 100644 >--- a/modules/network.c >+++ b/modules/network.c >@@ -37,6 +37,11 @@ > > #include <vendor.h> > >+/* Need for inet_addr() */ >+#include <sys/socket.h> >+#include <netinet/in.h> >+#include <arpa/inet.h> >+ > #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}, >-- >2.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 33806
:
7199
|
7200
|
7202
| 8836 |
8837