[ovs-dev] [PATCH 2/2] ovsschema: Avoid using 'protected' as variable name

Ben Pfaff blp at ovn.org
Fri Dec 1 21:27:15 UTC 2017


On Thu, Nov 30, 2017 at 11:11:51AM -0800, Yi-Hung Wei wrote:
> In C++, 'protected' is a keyword. This patch renames 'protected'
> to 'is_protected' in a couple files so that C++ compiler will
> not get confused.
> 
> Signed-off-by: Yi-Hung Wei <yihung.wei at gmail.com>

Thanks for working on this.

We can't change the name of the "protected" column in the database
schema, because that breaks backward compatibility.  Another approach
would be to make ovsdb-idlc use a different name for columns whose names
are C or C++ keywords; for example, it could append an underscore.


More information about the dev mailing list