Skip to content
Snippets Groups Projects
Commit 469ce079 authored by Simon McVittie's avatar Simon McVittie Committed by Vivek Das Mohapatra
Browse files

Silence some -Wswitch* warnings

parent 32c34b10
Branches
Tags
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -642,6 +642,7 @@ reloc_type (int rtype)
case R_X86_64_DTPOFF32: return "DTPOFF32"; // Offset in TLS block
case R_X86_64_GOTTPOFF: return "GOTTPOFF"; // 32 bit PC relative offset to GOT entry for IE symbol
case R_X86_64_TPOFF32: return "TPOFF32"; // Offset in initial TLS
default: break;
}
break;
case 32:
......@@ -683,8 +684,13 @@ reloc_type (int rtype)
case R_386_TLS_DTPMOD32: return "TLS_DTPMOD32"; // ID of module containing symbol
case R_386_TLS_DTPOFF32: return "TLS_DTPOFF32"; // Offset in TLS block
case R_386_TLS_TPOFF32: return "TLS_TPOFF32"; // Negated offset in static TLS block
default: break;
}
break;
default:
fprintf( stderr, "Unknown __ELF_NATIVE_CLASS\n" );
abort();
break;
}
return "???";
......
......@@ -641,6 +641,7 @@ reloc_type (int rtype)
case R_X86_64_DTPOFF32: return "DTPOFF32"; // Offset in TLS block
case R_X86_64_GOTTPOFF: return "GOTTPOFF"; // 32 bit PC relative offset to GOT entry for IE symbol
case R_X86_64_TPOFF32: return "TPOFF32"; // Offset in initial TLS
default: break;
}
break;
case 32:
......@@ -682,8 +683,11 @@ reloc_type (int rtype)
case R_386_TLS_DTPMOD32: return "TLS_DTPMOD32"; // ID of module containing symbol
case R_386_TLS_DTPOFF32: return "TLS_DTPOFF32"; // Offset in TLS block
case R_386_TLS_TPOFF32: return "TLS_TPOFF32"; // Negated offset in static TLS block
default: break;
}
break;
default:
break;
}
return "???";
......
......@@ -233,6 +233,7 @@ ld_cache_foreach (ldcache_t *cache, ld_cache_entry_cb cb, void *data)
}
break;
case CACHE_NONE:
default:
fprintf( stderr, "Invalid ld cache type %d", cache->type );
break;
......
......@@ -217,6 +217,10 @@ load_mmap_info (int *err, const char **errstr)
if( !path && !isblank(*c) )
path = c;
break;
default:
// invalid state reached: can't happen
abort();
}
}
}
......
......@@ -176,6 +176,10 @@ parse_symtab (const void *start,
defversym ? "@" : "" ,
version ? version : "" );
break;
default:
// Assumed to be uninteresting?
break;
}
}
}
......
......@@ -526,6 +526,10 @@ process_dt_rel (const void *start,
slot = addr( base, entry->r_offset, 0 );
try_relocation( slot, name, data );
break;
default:
// Do nothing? Is this right?
break;
}
}
......@@ -651,6 +655,10 @@ process_pt_dynamic (void *start,
ret = 1;
break;
}
default:
// Not relevant to us?
break;
}
return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment