Skip to content

Wrong format specification #6

Description

@yurivict

clang-6 prints this warning:

eps_img.c:122:34: warning: cc -O1 -ansi -Iclib -DOPENGL_SUPPORT -I/glut/include -DIMAGE_SUPPORT -DJPEG_SUPPORT -I/jpeg -DPNG_SUPPORT -I/libpng -I/zlib -DGIF_SUPPORT -I/gd -fno-omit-frame-pointer -isystem /usr/local/include  -c -o jpeg_img.o jpeg_img.c
format specifies type 'unsigned short' but the argument has type 'char' [-Wformat]
      fprintf (outfile, "%02hx", *pix++);
                         ~~~~~   ^~~~~~
                         %02hhx

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions