mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 01:08:31 +00:00
Merge pull request #23 from TheQuantumPhysicist/master
Fixed many warnings that appear due to assert not being executed in release mode.
This commit is contained in:
commit
b1140707cc
4 changed files with 13 additions and 9 deletions
|
@ -49,7 +49,7 @@ struct AlgorithmErrCategory: std::error_category
|
|||
case AlgorithmErrc::NoneAlgorithmUsed:
|
||||
return "none algorithm used";
|
||||
};
|
||||
|
||||
return "unknown algorithm error";
|
||||
assert (0 && "Code not reached");
|
||||
}
|
||||
};
|
||||
|
@ -86,7 +86,7 @@ struct DecodeErrorCategory: std::error_category
|
|||
case DecodeErrc::KeyNotRequiredForNoneAlg:
|
||||
return "key not required for NONE algorithm";
|
||||
};
|
||||
|
||||
return "unknown decode error";
|
||||
assert (0 && "Code not reached");
|
||||
}
|
||||
};
|
||||
|
@ -125,7 +125,7 @@ struct VerificationErrorCategory: std::error_category
|
|||
case VerificationErrc::TypeConversionError:
|
||||
return "type conversion error";
|
||||
};
|
||||
|
||||
return "unknown verification error";
|
||||
assert (0 && "Code not reached");
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue