Skip to content

Instantly share code, notes, and snippets.

@aprieger-llnw
Created June 16, 2017 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aprieger-llnw/1663e8154be3e2349a350ac86aaad2cb to your computer and use it in GitHub Desktop.
Save aprieger-llnw/1663e8154be3e2349a350ac86aaad2cb to your computer and use it in GitHub Desktop.
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:386:27: warning: passing 'const unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
cur_mb_len = mbrlen(p, len, &mbs);
^
/usr/include/wchar.h:123:38: note: passing argument to parameter here
size_t mbrlen(const char * __restrict, size_t, mbstate_t * __restrict);
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:488:19: warning: incompatible pointer types assigning to 'wchar_t *' (aka 'int *') from 'wctype_t *' (aka 'unsigned long *') [-Wincompatible-pointer-types]
work_mbc->chars = work_mbc->ch_classes = NULL;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:557:7: warning: incompatible pointer types assigning to 'wctype_t *' (aka 'unsigned long *') from 'wchar_t *' (aka 'int *') [-Wincompatible-pointer-types]
MALLOC(work_mbc->ch_classes, wchar_t, ++ch_classes_al);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:165:30: note: expanded from macro 'MALLOC'
#define MALLOC(p, t, n) ((p) = (t *) xmalloc((n) * sizeof (t)))
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:729:7: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
FETCH(c, 0);
^~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:413:27: note: expanded from macro 'FETCH'
update_mb_len_index(lexptr, lexleft); \
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:373:43: note: passing argument to parameter 'p' here
update_mb_len_index (unsigned char const *p, size_t len)
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:877:4: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
FETCH(c, _("unfinished repeat count"));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:413:27: note: expanded from macro 'FETCH'
update_mb_len_index(lexptr, lexleft); \
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:373:43: note: passing argument to parameter 'p' here
update_mb_len_index (unsigned char const *p, size_t len)
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:883:5: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
FETCH(c, _("unfinished repeat count"));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:413:27: note: expanded from macro 'FETCH'
update_mb_len_index(lexptr, lexleft); \
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:373:43: note: passing argument to parameter 'p' here
update_mb_len_index (unsigned char const *p, size_t len)
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:893:8: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
FETCH (c, _("unfinished repeat count"));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:413:27: note: expanded from macro 'FETCH'
update_mb_len_index(lexptr, lexleft); \
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:373:43: note: passing argument to parameter 'p' here
update_mb_len_index (unsigned char const *p, size_t len)
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:901:9: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
FETCH (c, _("unfinished repeat count"));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:413:27: note: expanded from macro 'FETCH'
update_mb_len_index(lexptr, lexleft); \
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:373:43: note: passing argument to parameter 'p' here
update_mb_len_index (unsigned char const *p, size_t len)
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:916:8: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
FETCH(c, _("unfinished repeat count"));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:413:27: note: expanded from macro 'FETCH'
update_mb_len_index(lexptr, lexleft); \
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:373:43: note: passing argument to parameter 'p' here
update_mb_len_index (unsigned char const *p, size_t len)
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:1004:4: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
FETCH(c, _("Unbalanced ["));
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:413:27: note: expanded from macro 'FETCH'
update_mb_len_index(lexptr, lexleft); \
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:373:43: note: passing argument to parameter 'p' here
update_mb_len_index (unsigned char const *p, size_t len)
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:1007:8: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
FETCH(c, _("Unbalanced ["));
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:413:27: note: expanded from macro 'FETCH'
update_mb_len_index(lexptr, lexleft); \
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:373:43: note: passing argument to parameter 'p' here
update_mb_len_index (unsigned char const *p, size_t len)
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:1031:9: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
FETCH(c1, _("Unbalanced ["));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:413:27: note: expanded from macro 'FETCH'
update_mb_len_index(lexptr, lexleft); \
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:373:43: note: passing argument to parameter 'p' here
update_mb_len_index (unsigned char const *p, size_t len)
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:1035:3: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
FETCH(c, _("Unbalanced ["));
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:413:27: note: expanded from macro 'FETCH'
update_mb_len_index(lexptr, lexleft); \
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:373:43: note: passing argument to parameter 'p' here
update_mb_len_index (unsigned char const *p, size_t len)
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:1036:8: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
FETCH(c1, _("Unbalanced ["));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:413:27: note: expanded from macro 'FETCH'
update_mb_len_index(lexptr, lexleft); \
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:373:43: note: passing argument to parameter 'p' here
update_mb_len_index (unsigned char const *p, size_t len)
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:1039:5: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
FETCH(c2, _("Unbalanced ["));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:413:27: note: expanded from macro 'FETCH'
update_mb_len_index(lexptr, lexleft); \
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:373:43: note: passing argument to parameter 'p' here
update_mb_len_index (unsigned char const *p, size_t len)
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:1051:4: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
FETCH(c2, _("Unbalanced ["));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:413:27: note: expanded from macro 'FETCH'
update_mb_len_index(lexptr, lexleft); \
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:373:43: note: passing argument to parameter 'p' here
update_mb_len_index (unsigned char const *p, size_t len)
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:1052:9: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
FETCH(c1, _("Unbalanced ["));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:413:27: note: expanded from macro 'FETCH'
update_mb_len_index(lexptr, lexleft); \
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:373:43: note: passing argument to parameter 'p' here
update_mb_len_index (unsigned char const *p, size_t len)
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:2511:19: warning: passing 'const unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
strncpy(buffer, buf_begin + index, match_len);
^~~~~~~~~~~~~~~~~
/usr/include/string.h:101:57: note: passing argument to parameter here
char *strncpy(char * __restrict, const char * __restrict, size_t);
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:2518:23: warning: passing 'const unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
strncpy(buffer, buf_begin + index, op_len);
^~~~~~~~~~~~~~~~~
/usr/include/string.h:101:57: note: passing argument to parameter here
char *strncpy(char * __restrict, const char * __restrict, size_t);
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:2531:23: warning: passing 'const unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
strncpy(buffer, buf_begin + index, op_len);
^~~~~~~~~~~~~~~~~
/usr/include/string.h:101:57: note: passing argument to parameter here
char *strncpy(char * __restrict, const char * __restrict, size_t);
^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/dfa.c:2786:17: warning: assigning to 'const unsigned char *' from 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
buf_begin = begin;
^ ~~~~~
21 warnings generated.
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/grep.c:1410:15: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
max_count = TYPE_MAXIMUM (off_t);
^~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/system.h:134:41: note: expanded from macro 'TYPE_MAXIMUM'
#define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
^~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/system.h:132:20: note: expanded from macro 'TYPE_MINIMUM'
? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) \
~~~~~~~ ^
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/grep.c:1593:20: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
max_count = TYPE_MAXIMUM (off_t);
^~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/system.h:134:41: note: expanded from macro 'TYPE_MAXIMUM'
#define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
^~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/system.h:132:20: note: expanded from macro 'TYPE_MINIMUM'
? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) \
~~~~~~~ ^
2 warnings generated.
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:108:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
error (2, 0, mesg);
^~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:108:16: note: treat the string as an argument to avoid this
error (2, 0, mesg);
^
"%s",
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:147:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
error (2, 0, err);
^~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:147:19: note: treat the string as an argument to avoid this
error (2, 0, err);
^
"%s",
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:156:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
error (2, 0, err);
^~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:156:19: note: treat the string as an argument to avoid this
error (2, 0, err);
^
"%s",
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:159:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
error (2, 0, err);
^~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:159:15: note: treat the string as an argument to avoid this
error (2, 0, err);
^
"%s",
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:203:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
error (2, 0, err);
^~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:203:15: note: treat the string as an argument to avoid this
error (2, 0, err);
^
"%s",
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:287:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
error (2, 0, err);
^~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:287:15: note: treat the string as an argument to avoid this
error (2, 0, err);
^
"%s",
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:758:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
error (2, 0, err);
^~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:758:20: note: treat the string as an argument to avoid this
error (2, 0, err);
^
"%s",
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:781:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
error (2, 0, err);
^~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:781:22: note: treat the string as an argument to avoid this
error (2, 0, err);
^
"%s",
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:793:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
error (2, 0, err);
^~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:793:19: note: treat the string as an argument to avoid this
error (2, 0, err);
^
"%s",
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:807:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
error (2, 0, err);
^~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:807:15: note: treat the string as an argument to avoid this
error (2, 0, err);
^
"%s",
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:815:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
error (2, 0, err);
^~~
/usr/home/aprieger/repos/freebsd_master/freebsd/gnu/usr.bin/grep/search.c:815:18: note: treat the string as an argument to avoid this
error (2, 0, err);
^
"%s",
11 warnings generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment