After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 787980 - tests: ipcpipeline: fix struct initializations
tests: ipcpipeline: fix struct initializations
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal normal
: 1.13.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-09-21 11:00 UTC by Víctor Manuel Jáquez Leal
Modified: 2018-01-17 12:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tests: ipcpipeline: fix struct initializations (25.99 KB, patch)
2017-09-21 11:00 UTC, Víctor Manuel Jáquez Leal
reviewed Details | Review

Description Víctor Manuel Jáquez Leal 2017-09-21 11:00:48 UTC
See commit description
Comment 1 Víctor Manuel Jáquez Leal 2017-09-21 11:00:54 UTC
Created attachment 360175 [details] [review]
tests: ipcpipeline: fix struct initializations

When compiling with clang 3.8.1 (debian) an error shows up:

error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]

This patch fix structures initialization adding the missing braces.
Nonetheless, this patch has to be committed with --no-verify because
this changeset is not well handled by gst-indent.
Comment 2 Tim-Philipp Müller 2018-01-05 19:25:37 UTC
> This patch fix structures initialization adding the missing braces.
> Nonetheless, this patch has to be committed with --no-verify because
> this changeset is not well handled by gst-indent.

That's not good, will just cause problems next time someone makes a change to the file.

It might make sense to define FOO_INIT macros that can be used like

   foo_t f = FOO_INIT;

and that would probably also play nice with gst-indent.
Comment 3 Tim-Philipp Müller 2018-01-17 12:08:17 UTC
Pushed this now:

commit e62eb34bfc08115c8125355152f55436ea6db506 (HEAD -> master)
Author: Tim-Philipp Müller <tim@centricular.com>
Date:   Wed Jan 17 12:06:28 2018 +0000

    tests: ipcpipeline: fix struct initialisation warnings with clang
    
    Use init macros to avoid gst-indent making a mess of it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787980

Didn't test with clang, so if it's still a problem please push a fix for the init macros.