Skip to content

imglib errors #26

@smdjeff

Description

@smdjeff
make: *** No rule to make target `/usr/local/bin/m6809-unknown-none-gcc-4.3.4', needed by `build/mach-strings.o'.  Stop.
jeff@imac freewpc % cat err
tools/imglib/imglib.c:505:6: warning: variable 'hist' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        if (!buf->hist)
            ^~~~~~~~~~
tools/imglib/imglib.c:508:2: note: uninitialized use occurs here
        hist->unique = 0;
        ^~~~
tools/imglib/imglib.c:505:2: note: remove the 'if' if its condition is always true
        if (!buf->hist)
        ^~~~~~~~~~~~~~~
tools/imglib/imglib.c:499:28: note: initialize the variable 'hist' to silence this warning
        struct img_histogram *hist;
                                  ^
                                   = NULL
tools/imglib/imglib.c:671:14: warning: variable 'sentinel' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized]
        for (n = 0; n <= 0xFF; n++)
                    ^~~~~~~~~
tools/imglib/imglib.c:689:14: note: uninitialized use occurs here
        *rleptr++ = sentinel;
                    ^~~~~~~~
tools/imglib/imglib.c:671:14: note: remove the condition if it is always true
        for (n = 0; n <= 0xFF; n++)
                    ^~~~~~~~~
tools/imglib/imglib.c:665:13: note: initialize the variable 'sentinel' to silence this warning
        U8 sentinel;
                   ^
                    = '\0'
2 warnings generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions