diff options
author | Alexander Potapenko <glider@google.com> | 2012-09-12 14:14:08 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2012-09-12 14:14:08 +0000 |
commit | 0fb4069dd0d0ef4c105105affea821f516a353a5 (patch) | |
tree | b7e9a0c0c7465e5ab3730e0a96968317e3a0d851 /lib | |
parent | 4ea14c2fa243684e1d7a017bd4f0d1e38801de0a (diff) |
Fix compiler warnings: remove __attribute__((visibility)) for static functions, use unsigned char instead of char.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163707 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/interception/mach_override/mach_override.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/interception/mach_override/mach_override.c b/lib/interception/mach_override/mach_override.c index 1da877f4a..ba5653c47 100644 --- a/lib/interception/mach_override/mach_override.c +++ b/lib/interception/mach_override/mach_override.c @@ -50,7 +50,7 @@ long kIslandTemplate[] = { #define kOriginalInstructionsSize 16 static -char kIslandTemplate[] = { +unsigned char kIslandTemplate[] = { // kOriginalInstructionsSize nop instructions so that we // should have enough space to host original instructions 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, @@ -68,7 +68,7 @@ char kIslandTemplate[] = { #define kJumpAddress kOriginalInstructionsSize + 6 static -char kIslandTemplate[] = { +unsigned char kIslandTemplate[] = { // kOriginalInstructionsSize nop instructions so that we // should have enough space to host original instructions 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, @@ -112,26 +112,26 @@ typedef struct { allocateBranchIsland( BranchIsland **island, int allocateHigh, - void *originalFunctionAddress) __attribute__((visibility("hidden"))); + void *originalFunctionAddress); static mach_error_t freeBranchIsland( - BranchIsland *island ) __attribute__((visibility("hidden"))); + BranchIsland *island ); static mach_error_t defaultIslandMalloc( - void **ptr, size_t unused_size, void *hint) __attribute__((visibility("hidden"))); + void **ptr, size_t unused_size, void *hint); static mach_error_t defaultIslandFree( - void *ptr) __attribute__((visibility("hidden"))); + void *ptr); #if defined(__ppc__) || defined(__POWERPC__) static mach_error_t setBranchIslandTarget( BranchIsland *island, const void *branchTo, - long instruction ) __attribute__((visibility("hidden"))); + long instruction ); #endif #if defined(__i386__) || defined(__x86_64__) @@ -139,7 +139,7 @@ static mach_error_t setBranchIslandTarget_i386( BranchIsland *island, const void *branchTo, - char* instructions ) __attribute__((visibility("hidden"))); + char* instructions ); // Can't be made static because there's no C implementation for atomic_mov64 // on i386. void @@ -154,7 +154,7 @@ eatKnownInstructions( int *howManyEaten, char *originalInstructions, int *originalInstructionCount, - uint8_t *originalInstructionSizes ) __attribute__((visibility("hidden"))); + uint8_t *originalInstructionSizes ); static void fixupInstructions( @@ -162,7 +162,7 @@ fixupInstructions( void *escapeIsland, void *instructionsToFix, int instructionCount, - uint8_t *instructionSizes ) __attribute__((visibility("hidden"))); + uint8_t *instructionSizes ); #ifdef DEBUG_DISASM static void |