xbt icon indicating copy to clipboard operation
xbt copied to clipboard

make.sh error ubuntu 20.04

Open madness85 opened this issue 4 years ago • 3 comments

../misc/bt_misc.cpp: In function ‘std::string time2a(time_t)’: ../misc/bt_misc.cpp:335:19: warning: ‘%02d’ directive writing between 2 and 11 bytes into a region of size between 8 and 15 [-Wformat-overflow=] 335 | sprintf(b, "%04d-%02d-%02d %02d:%02d:%02d", date->tm_year + 1900, date->tm_mon + 1, date->tm_mday, date->tm_hour, date->tm_min, date->tm_sec); | ^~~~ ../misc/bt_misc.cpp:335:13: note: directive argument in the range [-2147483647, 2147483647] 335 | sprintf(b, "%04d-%02d-%02d %02d:%02d:%02d", date->tm_year + 1900, date->tm_mon + 1, date->tm_mday, date->tm_hour, date->tm_min, date->tm_sec); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from /usr/include/c++/9/cstdio:42, from /usr/include/c++/9/ext/string_conversions.h:43, from /usr/include/c++/9/bits/basic_string.h:6493, from /usr/include/c++/9/string:55, from /usr/include/c++/9/bits/locale_classes.h:40, from /usr/include/c++/9/bits/ios_base.h:41, from /usr/include/c++/9/ios:42, from /usr/include/c++/9/ostream:38, from /usr/include/c++/9/iterator:64, from /usr/include/boost/iterator/iterator_traits.hpp:10, from /usr/include/boost/range/iterator_range_core.hpp:26, from /usr/include/boost/range/iterator_range.hpp:13, from ../misc/xbt/data_ref.h:3, from ../misc/xbt/bt_misc.h:3, from ../misc/bt_misc.cpp:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 20 and 72 bytes into a destination of size 20 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

madness85 avatar Jun 10 '20 14:06 madness85

Installed gcc --version gcc (Ubuntu 7.5.0-6ubuntu2) 7.5.0

Its working, i take 9 isn't compatible yet?

madness85 avatar Jun 10 '20 15:06 madness85

It's a warning, not an error.. Are you using the latest version of XBT Tracker?

OlafvdSpek avatar Jun 20 '20 12:06 OlafvdSpek

It's a warning, not an error.. Are you using the latest version of XBT Tracker?

Sent you an email buddy.

madness85 avatar Jun 20 '20 20:06 madness85