Menu

#341 GBitmap.cpp:102:55: warning: member ' DJVU::GBitmap::bytes_data' is used uninitialized [-Wuninitialized]

djview
closed
nobody
None
5
2021-11-22
2021-11-19
dcb
No

Source code is

bytes_per_row(0), grays(0), bytes(0), gbytes_data(bytes_data),

but

unsigned char *bytes_data;
GPBuffer<unsigned char=""> gbytes_data;</unsigned>

Discussion

  • Leon Bottou

    Leon Bottou - 2021-11-22
    • status: open --> closed
     
  • Leon Bottou

    Leon Bottou - 2021-11-22

    Not a bug. GPBuffer takes a reference to a pointer. Even though the pointer is not initialized, the reference is well defined. That said, I do not like this GPBuffer thing, but it has spread everywhere...

     

Log in to post a comment.

MongoDB Logo MongoDB