Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 5210100b authored by Christopher R. Palmer's avatar Christopher R. Palmer Committed by Michael Bestas
Browse files

aapt: Fix compiler warning (clobbered by longjmp)

The error handling can clobber the fp variable when the code is
being optimized and therefore fp must be marked as volatile to
stop it from doing unsafe optimizations.

Change-Id: Ib133587687c7fc0e788c4b9673669ef9b5bbe91a
parent 6aa895db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1459,7 +1459,7 @@ status_t preProcessImageToCache(const Bundle* bundle, const String8& source, con
    png_structp read_ptr = NULL;
    png_infop read_info = NULL;

    FILE* fp;
    FILE*volatile fp;

    image_info imageInfo;