mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Fix an uninitialized variable warning when building with GCC.
Change-Id: I6f24553a9c4dfb59e05778f19406aefa058b6342
This commit is contained in:
@@ -267,6 +267,7 @@ class EndianAwareFileReader {
|
||||
uint32_t value;
|
||||
} endian_test = { { 0, 1, 2, 3 } };
|
||||
host_endian_type_ = endian_test.value;
|
||||
file_endian_type_ = host_endian_type_;
|
||||
}
|
||||
|
||||
~EndianAwareFileReader(void) {
|
||||
|
||||
Reference in New Issue
Block a user