Snippets for weechat 4.10.5 from Fedora i686
Sourced from https://kojipkgs.fedoraproject.org/packages/weechat/4.10.5/1.fc46/data/logs/i686/build.log.
-
/builddir/build/BUILD/weechat-4.10.5-build/weechat-4.10.5/src/core/core-util.c:460:47: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 460 | snprintf (string, length, "%sT00:00:00", datetime); | ^ -
/builddir/build/BUILD/weechat-4.10.5-build/weechat-4.10.5/src/core/core-util.c:451:36: warning: ‘%s’ directive output may be truncated writing up to 127 bytes into a region of size 1 [-Wformat-truncation=] 451 | snprintf (string, length, "%s%s", str_date, datetime); | ^~ ~~~~~~~~ -
/builddir/build/BUILD/weechat-4.10.5-build/weechat-4.10.5/src/plugins/spell/spell-command.c:100:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 100 | pos = strchr (lang_tag, '_'); | ^ -
/builddir/build/BUILD/weechat-4.10.5-build/weechat-4.10.5/tests/unit/core/test-core-command.cpp:355:79: warning: integer overflow in expression of type ‘long int’ results in ‘-2147483648’ [-Woverflow] 355 | snprintf (command, sizeof (command), "/buffer move +%ld", ((long)INT_MAX) + 1); | ~~~~~~~~~~~~~~~~^~~ -
/builddir/build/BUILD/weechat-4.10.5-build/weechat-4.10.5/tests/unit/core/test-core-command.cpp:356:91: warning: integer overflow in expression of type ‘long int’ results in ‘-2147483648’ [-Woverflow] 356 | snprintf (string, sizeof (string), "Invalid buffer number: \"+%ld\"", ((long)INT_MAX) + 1); | ~~~~~~~~~~~~~~~~^~~ -
/builddir/build/BUILD/weechat-4.10.5-build/weechat-4.10.5/tests/unit/core/test-core-command.cpp:358:79: warning: integer overflow in expression of type ‘long int’ results in ‘-2147483648’ [-Woverflow] 358 | snprintf (command, sizeof (command), "/buffer move -%ld", ((long)INT_MAX) + 1); | ~~~~~~~~~~~~~~~~^~~ -
/builddir/build/BUILD/weechat-4.10.5-build/weechat-4.10.5/tests/unit/core/test-core-command.cpp:359:91: warning: integer overflow in expression of type ‘long int’ results in ‘-2147483648’ [-Woverflow] 359 | snprintf (string, sizeof (string), "Invalid buffer number: \"-%ld\"", ((long)INT_MAX) + 1); | ~~~~~~~~~~~~~~~~^~~ -
/builddir/build/BUILD/weechat-4.10.5-build/weechat-4.10.5/src/core/core-calc.c:292:15: warning: ‘%.10f’ directive output may be truncated writing between 3 and 321 bytes into a region of size 64 [-Wformat-truncation=] 292 | "%.10f", | ^ -
/builddir/build/BUILD/weechat-4.10.5-build/weechat-4.10.5/src/core/core-crypto.c:554:44: warning: ‘%.*lu’ directive output may be truncated writing between 4 and 10 bytes into a region of size 5 [-Wformat-truncation=] 554 | length = snprintf (result, digits + 1, "%.*lu", digits, bin_code); | ^ -
/builddir/build/BUILD/weechat-4.10.5-build/weechat-4.10.5/src/core/core-util.c:460:35: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 460 | snprintf (string, length, "%sT00:00:00", datetime); | ^ -
/builddir/build/BUILD/weechat-4.10.5-build/weechat-4.10.5/src/core/core-util.c:451:35: warning: ‘%s’ directive output may be truncated writing up to 127 bytes into a region of size 1 [-Wformat-truncation=] 451 | snprintf (string, length, "%s%s", str_date, datetime); | ^ ~