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

GCC 5.3.1 Compiler warning: sign compare #14

Open
ida29 opened this issue Mar 7, 2018 · 0 comments
Open

GCC 5.3.1 Compiler warning: sign compare #14

ida29 opened this issue Mar 7, 2018 · 0 comments

Comments

@ida29
Copy link

ida29 commented Mar 7, 2018

compiler

$ gcc --version
gcc (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

result

buffer.c: In function ‘buffer_slice’:
buffer.c:248:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (to < from) return NULL;
          ^
buffer.c:254:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (to > len) to = len;
          ^
buffer.c: In function ‘buffer_print’:
buffer.c:347:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (i = 0; i < len; ++i) {
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

No branches or pull requests

1 participant