Skip to content

Commit

Permalink
Silence size warnings for error code enums
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-johansson committed Dec 15, 2023
1 parent a863492 commit 0fb391d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace tactile {
* \see `get_generic_error_category`
* \see `make_generic_error`
*/
enum class GenericError : int {
enum class GenericError : int { // NOLINT(performance-enum-size)
kUnknown,
kUnsupported,
kInvalidArgument,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

namespace tactile {

enum class CompressionError : int {
enum class CompressionError : int // NOLINT(performance-enum-size)
{
kNoData, ///< No data to process.
kInternalError, ///< An error occurred in an internal stage (such as a library call).
kInvalidMode, ///< An invalid compression mode was used.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace tactile {
/**
* \brief Represents error codes used when loading and emitting save files.
*/
enum class SaveFormatError : int {
enum class SaveFormatError : int { // NOLINT(performance-enum-size)
kInvalidOperation, ///< The format doesn't support the requested operation.
kUnknown, ///< An unknown error occurred.
kBadFile, ///< Something went wrong when loading or saving a file.
Expand Down
2 changes: 1 addition & 1 deletion modules/opengl/inc/tactile/opengl/opengl_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace tactile {

enum class OpenGLError : int {
enum class OpenGLError : int { // NOLINT(performance-enum-size)
kUnknown,
kInvalidEnum,
kInvalidValue,
Expand Down

0 comments on commit 0fb391d

Please sign in to comment.