GNOME Bugzilla – Bug 700375
Allow fine-tuned suppressing warnings
Last modified: 2018-05-22 14:47:49 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 }
*** Bug 689462 has been marked as a duplicate of this bug. ***
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.
-- 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.