[llvm] r269555 - llvm/Support/MachO.h: Fix warnings. [-Wpedantic]
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Sat May 14 01:00:12 PDT 2016
Author: chapuni
Date: Sat May 14 03:00:11 2016
New Revision: 269555
URL: http://llvm.org/viewvc/llvm-project?rev=269555&view=rev
Log:
llvm/Support/MachO.h: Fix warnings. [-Wpedantic]
Modified:
llvm/trunk/include/llvm/Support/MachO.h
Modified: llvm/trunk/include/llvm/Support/MachO.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/MachO.h?rev=269555&r1=269554&r2=269555&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/MachO.h (original)
+++ llvm/trunk/include/llvm/Support/MachO.h Sat May 14 03:00:11 2016
@@ -1239,14 +1239,14 @@ namespace llvm {
sys::swapByteOrder(C.cmd);
sys::swapByteOrder(C.cmdsize);
sys::swapByteOrder(C.cksum);
- };
+ }
inline void swapStruct(twolevel_hints_command &C) {
sys::swapByteOrder(C.cmd);
sys::swapByteOrder(C.cmdsize);
sys::swapByteOrder(C.offset);
sys::swapByteOrder(C.nhints);
- };
+ }
inline void swapStruct(prebound_dylib_command &C) {
sys::swapByteOrder(C.cmd);
@@ -1254,38 +1254,38 @@ namespace llvm {
sys::swapByteOrder(C.name);
sys::swapByteOrder(C.nmodules);
sys::swapByteOrder(C.linked_modules);
- };
+ }
inline void swapStruct(fvmfile_command &C) {
sys::swapByteOrder(C.cmd);
sys::swapByteOrder(C.cmdsize);
sys::swapByteOrder(C.name);
sys::swapByteOrder(C.header_addr);
- };
+ }
inline void swapStruct(symseg_command &C) {
sys::swapByteOrder(C.cmd);
sys::swapByteOrder(C.cmdsize);
sys::swapByteOrder(C.offset);
sys::swapByteOrder(C.size);
- };
+ }
inline void swapStruct(ident_command &C) {
sys::swapByteOrder(C.cmd);
sys::swapByteOrder(C.cmdsize);
- };
+ }
inline void swapStruct(fvmlib &C) {
sys::swapByteOrder(C.name);
sys::swapByteOrder(C.minor_version);
sys::swapByteOrder(C.header_addr);
- };
+ }
inline void swapStruct(fvmlib_command &C) {
sys::swapByteOrder(C.cmd);
sys::swapByteOrder(C.cmdsize);
swapStruct(C.fvmlib);
- };
+ }
// Get/Set functions from <mach-o/nlist.h>
More information about the llvm-commits
mailing list