mesa: change assert to unreachable in two format functions
This fixes two problems reported by osc: I: Program returns random data in a function E: Mesa no-return-in-nonvoid-function ../../src/mesa/main/format_utils.c:180 E: Mesa no-return-in-nonvoid-function ../../src/mesa/main/glformats.c:2714 Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
This commit is contained in:

committed by
Matt Turner

parent
7da60eca4f
commit
76086d7120
@@ -175,7 +175,7 @@ _mesa_compute_rgba2base2rgba_component_mapping(GLenum baseFormat, uint8_t *map)
|
|||||||
return needRebase;
|
return needRebase;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
assert(!"Unexpected base format");
|
unreachable("Unexpected base format");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2712,5 +2712,5 @@ _mesa_format_from_format_and_type(GLenum format, GLenum type)
|
|||||||
* matches the GL format/type provided. We may need to add a new Mesa
|
* matches the GL format/type provided. We may need to add a new Mesa
|
||||||
* format in that case.
|
* format in that case.
|
||||||
*/
|
*/
|
||||||
assert(!"Unsupported format");
|
unreachable("Unsupported format");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user