Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing header without LZO #41

Merged
merged 1 commit into from
Apr 1, 2020
Merged

Fix missing header without LZO #41

merged 1 commit into from
Apr 1, 2020

Conversation

alyssais
Copy link
Contributor

@alyssais alyssais commented Apr 1, 2020

lib/common/compress.c: In function 'compressor_get_default':
lib/common/compress.c:39:2: warning: implicit declaration of function 'assert' [-Wimplicit-function-declaration]
   39 |  assert(0);
      |  ^~~~~~
lib/common/compress.c:8:1: note: 'assert' is defined in header '<assert.h>'; did you forget to '#include <assert.h>'?
    7 | #include "common.h"
  +++ |+#include <assert.h>
    8 |

lib/common/compress.c: In function 'compressor_get_default':
lib/common/compress.c:39:2: warning: implicit declaration of function 'assert' [-Wimplicit-function-declaration]
   39 |  assert(0);
      |  ^~~~~~
lib/common/compress.c:8:1: note: 'assert' is defined in header '<assert.h>'; did you forget to '#include <assert.h>'?
    7 | #include "common.h"
  +++ |+#include <assert.h>
    8 |
alyssais added a commit to alyssais/nixpkgs that referenced this pull request Apr 1, 2020
Like all supported formats (I think), LZO is optional.  I don't see
any reason to bother with options for now, so I've just enabled it.  Plus,
there's a bug in this release that makes compilation fail if LZO is
disabled due to a missing include.  I've sent a fix[1] for that
upstream.

[1]: AgentD/squashfs-tools-ng#41
@AgentD AgentD merged commit b3f2636 into AgentD:master Apr 1, 2020
alyssais added a commit to NixOS/nixpkgs that referenced this pull request Apr 2, 2020
Like all supported formats (I think), LZO is optional.  I don't see
any reason to bother with options for now, so I've just enabled it.  Plus,
there's a bug in this release that makes compilation fail if LZO is
disabled due to a missing include.  I've sent a fix[1] for that
upstream.

[1]: AgentD/squashfs-tools-ng#41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants