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 700375 - Allow fine-tuned suppressing warnings
Allow fine-tuned suppressing warnings
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: Semantic Analyzer
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Vala maintainers
Vala maintainers
: 689462 (view as bug list)
Depends on:
Blocks: 696979
 
 
Reported: 2013-05-15 10:16 UTC by Maciej (Matthew) Piechotka
Modified: 2018-05-22 14:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Maciej (Matthew) Piechotka 2013-05-15 10:16:08 UTC
Vala sometimes produces warnings which should be/can be ignored. As compiling in such situations with -Werror is still beneficial (or at least for easier spotting new warnings) it would be nice to suppress warnings.

Example syntax:

[SuppressWarnings (unused_variable = "x,y")]
void foo() {
    int x = 0; // No warning
    int y = 0; // No warning
    int z = 0; // Warning - unused variable z
}
Comment 1 Maciej (Matthew) Piechotka 2013-05-15 10:16:37 UTC
*** Bug 689462 has been marked as a duplicate of this bug. ***
Comment 2 Jürg Billeter 2013-05-16 07:19:53 UTC
I'm not very fond of such warning tuning. I'd rather want to avoid producing bogus warnings in the first place. For the case mentioned in bug 689462, an attribute on the type may make sense.
Comment 3 GNOME Infrastructure Team 2018-05-22 14:47:49 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/377.