On 05/02/2016 06:15 PM, Ilia Mirkin wrote:
I know I've been sticking commas at the end of enums left and right
for the past several years, and haven't heard any complaints. The nice
thing about the trailing comma is that you avoid having to change
unrelated lines when adding entries. This leads to cleaner per-line
histories, which can be useful to see when something was added.
Yeah, I'd like to use trailing commas too, but I'd rather not see
warnings. I'm not sure why/when this started.
-Brian
Why is this becoming an issue just now?
-ilia
On Mon, May 2, 2016 at 8:05 PM, Brian Paul <bri...@vmware.com> wrote:
Silences warnings from -Wpedantic:
In file included from ../../src/compiler/glsl/glsl_symbol_table.h:34:0,
from ../../src/compiler/glsl/glsl_parser_extras.h:35,
from nir/glsl_to_nir.h:29,
from nir/glsl_to_nir.cpp:51:
../../src/compiler/glsl/ir.h:372:17: warning: comma at end of enumerator list
[-Wpedantic]
ir_var_hidden,
^
../../src/compiler/glsl/ir.h:1962:24: warning: comma at end of enumerator list
[-Wpedantic]
ir_samples_identical, /**< Query whether all samples are definitely
identical. */
^
---
src/compiler/glsl/ir.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h
index 0c319ea..cfe318c 100644
--- a/src/compiler/glsl/ir.h
+++ b/src/compiler/glsl/ir.h
@@ -368,7 +368,7 @@ enum ir_var_declaration_type {
* Variable is implicitly generated by the compiler and should not be
* visible via the API.
*/
- ir_var_hidden,
+ ir_var_hidden
};
/**
@@ -1958,7 +1958,7 @@ enum ir_texture_opcode {
ir_tg4, /**< Texture gather */
ir_query_levels, /**< Texture levels query */
ir_texture_samples, /**< Texture samples query */
- ir_samples_identical, /**< Query whether all samples are definitely
identical. */
+ ir_samples_identical /**< Query whether all samples are definitely
identical. */
};
--
1.9.1
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.freedesktop.org_mailman_listinfo_mesa-2Ddev&d=BQIBaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=T0t4QG7chq2ZwJo6wilkFznRSFy-8uDKartPGbomVj8&m=xMM5Gpmyb0cXOOoiArrZY02-5IiGQhnmeAoDqUKfrDo&s=VPof2nIr4t5NbxJ4CxKdkOow0Ik2t6SeCIMGWrxY7DI&e=
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev