-
Notifications
You must be signed in to change notification settings - Fork 284
Warning tags
Always put a tag describing the warning, using one from the list below (or add a new one). All tags are prefixed by [warning-fix]
in order to make clear that those commits are related to compiler warning fixes.
[warning-fix][ambiguous-else]
Fixes warnings like : suggest explicit braces to avoid ambiguous ‘else’
[warning-fix][assignment-in-conditional-expression]
Fixes warnings like : assignment in conditional expression
[warning-fix][const-standard-cstring]
Fixes warnings where const Standard_CString is used instead of just Standard_CString
[warning-fix][deprecated-conversion-from-string]
Fixes warnings like: deprecated conversion from string constant to 'char*'
[warning-fix][empty-conditional-body]
Fixes warning like : found ';' after conditional instruction. Is what you want?
Cases like
if (a);
[warning-fix][function-never-returns]
Fixes warnings like 'function doesn't return a value' in one or more code-paths
[warning-fix][implicit-conversion-from-wider-type]
Fixes warnings like 'conversion' conversion from 'type1' to 'type2', possible loss of data
[warning-fix][implicit-bool-conversion]
Fixes warnings like implicit 'conversion' conversion from 'type1' to 'bool' (performance warning)
[warning-fix][initialization-order]
Fixes warnings in constructors where members are not initialized in the same order as they are declared
[warning-fix][linker-warnings]
Fixes warnings like : local symbol 'name' imported
[warning-fix][logical-op-parentheses]
GCC and Clang report a warning about constructs like A || B && C
because, even if operator precedence is well specified in C standard, this is error prone and user may be wrong. One has to write A || (B && C)
to silence these warnings
[warning-fix][old-declarators]
Fixes warnings when functions used old-style C declarators
[warning-fix][printf-format-mismatch]
Fixes warnings like : format ‘%d’ expects argument of type ‘int’, but argument 1 has type ‘Standard_Size’
[warning-fix][remove-deprecated-functions]
Fixes warnings by removing deprecated functions
[warning-fix][signed-unsigned-mismatch]
Fixes warning like 'expression' : signed/unsigned mismatch
[warning-fix][uninitialized-var]
Fixes warnings like : (potentially) uninitialized local variable 'name' used
[warning-fix][unreachable-code]
Fixes unreachable code warnings
[warning-fix][unused-function]
Fixes warnings like : unused static local function
[warning-fix][unused-local-var]
Fixes warnings like : unused local variable 'name' or 'name' initialized but never used
[warning-fix][missing-operators]
When you define a class with a placement new operator without the corresponding delete one, the compiler complains. Also it complains when there's a const member without an assignment operator.