mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-22 14:43:46 +00:00
Fix Warnings by g++ 10.2 (#2523)
This commit is contained in:
parent
0574c50981
commit
269cedd36e
@ -57,7 +57,7 @@ void R2DecDecompiler::decompileAt(RVA addr)
|
||||
if (lineObject.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
RzCodeAnnotation annotationi = { 0 };
|
||||
RzCodeAnnotation annotationi = {};
|
||||
annotationi.start = codeString.length();
|
||||
codeString.append(lineObject["str"].toString() + "\n");
|
||||
annotationi.end = codeString.length();
|
||||
|
@ -117,10 +117,13 @@ bool ExportsProxyModel::lessThan(const QModelIndex &left, const QModelIndex &rig
|
||||
return leftExp.vaddr < rightExp.vaddr;
|
||||
// fallthrough
|
||||
case ExportsModel::NameColumn:
|
||||
if (leftExp.name != rightExp.name)
|
||||
return leftExp.name < rightExp.name;
|
||||
// fallthrough
|
||||
case ExportsModel::TypeColumn:
|
||||
if (leftExp.type != rightExp.type)
|
||||
return leftExp.type < rightExp.type;
|
||||
// fallthrough
|
||||
case ExportsModel::CommentColumn:
|
||||
return Core()->getCommentAt(leftExp.vaddr) < Core()->getCommentAt(rightExp.vaddr);
|
||||
default:
|
||||
|
@ -1336,7 +1336,7 @@ static void optimizeLinearProgramPass(
|
||||
int g = queue.top().second;
|
||||
int size = queue.top().first;
|
||||
queue.pop();
|
||||
if (size != edgeCount[g] || processed[g]) {
|
||||
if ((size_t)size != edgeCount[g] || processed[g]) {
|
||||
continue;
|
||||
}
|
||||
int direction = objectiveFunction[g];
|
||||
|
@ -143,7 +143,7 @@ bool ImportsProxyModel::lessThan(const QModelIndex &left, const QModelIndex &rig
|
||||
case ImportsModel::LibraryColumn:
|
||||
if (leftImport.libname != rightImport.libname)
|
||||
return leftImport.libname < rightImport.libname;
|
||||
// Fallthrough. Sort by Library and then by import name
|
||||
// fallthrough
|
||||
case ImportsModel::NameColumn:
|
||||
return leftImport.name < rightImport.name;
|
||||
case ImportsModel::CommentColumn:
|
||||
|
Loading…
Reference in New Issue
Block a user