Coder Social home page Coder Social logo

Warnings in avifjpeg.c about libavif HOT 8 CLOSED

aomediacodec avatar aomediacodec commented on July 2, 2024
Warnings in avifjpeg.c

from libavif.

Comments (8)

y-guyon avatar y-guyon commented on July 2, 2024 1

would you mind posting a full example of code I should add to avifpng.c?

Try replacing the content of your avifpng.c file by this.

from libavif.

marchLex avatar marchLex commented on July 2, 2024 1

would you mind posting a full example of code I should add to avifpng.c?

Try replacing the content of your avifpng.c file by this.

wow! thanks a lot! it works!

from libavif.

joedrago avatar joedrago commented on July 2, 2024

Ah, good ol' -Werror=clobbered. My favorite!

This should fix it:

b76d06f

I'm going to be adding some new code this week and likely bumping the version afterwards, so if you don't like building from master, expect a proper version tag with this fix in the next couple of days.

from libavif.

novomesk avatar novomesk commented on July 2, 2024

Similar favorite one here:

../apps/shared/avifpng.c: In function ‘avifPNGWrite’:
../apps/shared/avifpng.c:143:14: error: variable ‘writeResult’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
  143 |     avifBool writeResult = AVIF_FALSE;
      |              ^~~~~~~~~~~
cc1: all warnings being treated as errors

from libavif.

joedrago avatar joedrago commented on July 2, 2024

Fixed.

0e9a4b4

from libavif.

marchLex avatar marchLex commented on July 2, 2024

Similar favorite one here:

../apps/shared/avifpng.c: In function ‘avifPNGWrite’:
../apps/shared/avifpng.c:143:14: error: variable ‘writeResult’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
  143 |     avifBool writeResult = AVIF_FALSE;
      |              ^~~~~~~~~~~
cc1: all warnings being treated as errors

almost same here, fix please ;)

FAILED: CMakeFiles/avif_apps.dir/apps/shared/avifpng.c.o
/usr/bin/cc  -I../include -O2 -DNDEBUG   -Wall -Wextra -Werror -pthread -std=gnu99 -MD -MT CMakeFiles/avif_apps.dir/apps/shared/avifpng.c.o -MF CMakeFiles/avif_apps.dir/apps/shared/avifpng.c.o.d -o CMakeFiles/avif_apps.dir/apps/shared/avifpng.c.o   -c ../apps/shared/avifpng.c
../apps/shared/avifpng.c: In function ‘avifPNGWrite’:
../apps/shared/avifpng.c:393:14: error: variable ‘monochrome8bit’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
     avifBool monochrome8bit = (avif->yuvFormat == AVIF_PIXEL_FORMAT_YUV400) && !avif->alphaPlane && (avif->depth == 8) &&
              ^
../apps/shared/avifpng.c:396:9: error: variable ‘colorType’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
     int colorType;
         ^
cc1: all warnings being treated as errors

from libavif.

y-guyon avatar y-guyon commented on July 2, 2024

almost same here, fix please ;)

Is #1151 enough?

from libavif.

marchLex avatar marchLex commented on July 2, 2024

almost same here, fix please ;)

Is #1151 enough?

Thanks! I'd like to believe that it is, but I have no idea how to deal with C language :) so would you mind posting a full example of code I should add to avifpng.c?

from libavif.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.