7 Commits

Author SHA1 Message Date
Daniel P. Berrangé
23c0061ccb Disable -Wcast-function-type warning
Most glib function casts trigger this

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2018-07-27 11:50:07 +01:00
Fabiano Fidêncio
df403f5aba m4: Use -Wdeprecated-declarations
Let's enable deprecated-declarations warnings as we want to:
1) Avoid insert/maintain deprecated widgets/methods
2) Avoid adding widgets/methods that are too new, what could cause
problems like virt-viewer not being able to build in a specific distro.

Patches for making these two items possible are coming, introducing
_VERSION_MAX_ALLOWED for both GLIB and GDK and removing (as much as
possible) deprecated widgets/methods/structures.

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-02-24 16:56:51 +01:00
Daniel P. Berrange
9f6b2e3f81 Turn off deprecation warnings
GLib deprecated the GValueArray type without providing an ABI
compatible replacement. Thus we need to disable dreprecation
warnings

../../src/virt-viewer-auth.c: In function 'virt_viewer_auth_vnc_credentials':
../../src/virt-viewer-auth.c:112:9: error: 'g_value_array_get_nth' is deprecated (declared at /usr/include/glib-2.0/gobject/gvaluearray.h:65): Use 'g_array_index' instead [-Werror=deprecated-declarations]
2013-02-13 15:20:11 +00:00
Michal Privoznik
bd84ea26ea Don't redefine _FORTIFY_SOURCE macro
If the _FORTIFY_SOURCE has been already defined, we unconditionally
redefine it, leaving us with warning/error thrown at compilation time.
2013-02-04 14:56:59 +01:00
Marc-André Lureau
8d9a9ca521 build: allow building with newer glibc-headers and -O0
Fix copied from libvirt, commit by Eric Blake.

    glibc 2.15 (on Fedora 17) coupled with explicit disabling of
    optimization during development dies a painful death:

    /usr/include/features.h:314:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]

    Work around this by only conditionally defining _FORTIFY_SOURCE,
    in the case where glibc can actually use it.  The trick is using
    AH_VERBATIM instead of AC_DEFINE.
2012-07-03 23:02:41 +02:00
Daniel P. Berrange
0154dca5b9 Kill automake portability warnings. Use a config.h Cleanup misc build issues. Build with fatal compile warnings 2008-03-05 18:24:16 -05:00
Daniel P. Berrange
07c89c3f5e Initial commit 2007-07-20 15:26:08 -04:00