Fix typo in common/enum-flags.h example
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 5 Jun 2018 17:22:25 +0000 (18:22 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 5 Jun 2018 17:22:25 +0000 (18:22 +0100)
The DEF_ENUM_FLAGS_TYPE macro should be used with a trailing
semicolon, but the example in the comment lacks one.

gdb/ChangeLog:
2018-06-05  David Malcolm  <dmalcolm@redhat.com>

* common/enum-flags.h: Add trailing semicolon to example in
comment.

gdb/ChangeLog
gdb/common/enum-flags.h

index 85c62dbd86cc1240fc106a82bb58238d5ec73ff6..54205a6ea8503492713b86d0c2e0773d1073c628 100644 (file)
@@ -1,3 +1,8 @@
+2018-06-05  David Malcolm  <dmalcolm@redhat.com>
+
+       * common/enum-flags.h: Add trailing semicolon to example in
+       comment.
+
 2018-06-05  Tom Tromey <tom@tromey.com>
 
        PR cli/12326:
index 65732c11a465003464b4a206be4375ed7662c650..82568a5a3d9ae0ec4bcf9c07f22b61565826a784 100644 (file)
@@ -32,7 +32,7 @@
        flag_val3 = 1 << 3,
        flag_val4 = 1 << 4,
     };
-    DEF_ENUM_FLAGS_TYPE(enum some_flag, some_flags)
+    DEF_ENUM_FLAGS_TYPE(enum some_flag, some_flags);
 
     some_flags f = flag_val1 | flag_val2;
     f |= flag_val3;