diff options
author | Sean McBride <sean@rogue-research.com> | 2021-10-18 14:01:05 (GMT) |
---|---|---|
committer | Sean McBride <sean@rogue-research.com> | 2021-10-25 16:27:09 (GMT) |
commit | 1cf14f8c03be76f39e60ccad5049a6f2cd00aa04 (patch) | |
tree | 1cdcd647478e605952ddf4e1f1591715384e3c2c /Source/cmELF.cxx | |
parent | 319944b3d289871c4cd21ee11aba1f5785d4b626 (diff) | |
download | CMake-1cf14f8c03be76f39e60ccad5049a6f2cd00aa04.zip CMake-1cf14f8c03be76f39e60ccad5049a6f2cd00aa04.tar.gz CMake-1cf14f8c03be76f39e60ccad5049a6f2cd00aa04.tar.bz2 |
Source: fix many -Wmissing-prototypes warnings by marking functions static
Diffstat (limited to 'Source/cmELF.cxx')
-rw-r--r-- | Source/cmELF.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmELF.cxx b/Source/cmELF.cxx index 1678ce8..843ea97 100644 --- a/Source/cmELF.cxx +++ b/Source/cmELF.cxx @@ -29,14 +29,14 @@ struct cmELFByteSwapSize void cmELFByteSwap(char* /*unused*/, cmELFByteSwapSize<1> /*unused*/) { } -void cmELFByteSwap(char* data, cmELFByteSwapSize<2> /*unused*/) +static void cmELFByteSwap(char* data, cmELFByteSwapSize<2> /*unused*/) { char one_byte; one_byte = data[0]; data[0] = data[1]; data[1] = one_byte; } -void cmELFByteSwap(char* data, cmELFByteSwapSize<4> /*unused*/) +static void cmELFByteSwap(char* data, cmELFByteSwapSize<4> /*unused*/) { char one_byte; one_byte = data[0]; @@ -46,7 +46,7 @@ void cmELFByteSwap(char* data, cmELFByteSwapSize<4> /*unused*/) data[1] = data[2]; data[2] = one_byte; } -void cmELFByteSwap(char* data, cmELFByteSwapSize<8> /*unused*/) +static void cmELFByteSwap(char* data, cmELFByteSwapSize<8> /*unused*/) { char one_byte; one_byte = data[0]; |