|
6353cc1f
|
2018-10-02T21:39:19
|
|
[circleci] Fix some of warnings from clang-everything bot (#1211)
* -Wshift-sign-overflow
* -Wmissing-prototypes
|
|
dbdbfe3d
|
2017-10-15T12:11:08
|
|
Use nullptr instead of NULL
|
|
998e8dda
|
2015-11-02T16:55:29
|
|
util: Fix build on Visual Studio
Use the fallback implementation for lround() only on pre-2013 Visual
Studio, and ensure we are clear about the types of the parameters for
lround() and scalbnf(), since Visual Studio can be quite picky on
ambiguous parameter types. Also, use g_ascii_strcasecmp() rather than
strcasecmp() as we are already using GLib for this code and we are
assured that g_ascii_strcasemp() is available.
For scalbnf() on pre-2013 Visaul Studio, a fallback implementation is
needed, but use another forced-included header for those compilers, which
will be added later.
Also use (char)27 on Visual Studio builds as '\e' is not a recognized
escape sequence, which will do the same thing.
|
|
ff0f2105
|
2015-05-18T14:16:28
|
|
[util] Minor
|
|
7235f33f
|
2013-06-10T14:39:51
|
|
Fix misc warnings reported by cppcheck
https://bugs.freedesktop.org/show_bug.cgi?id=65544
|
|
b4c5c529
|
2013-06-03T17:55:29
|
|
util/ansi-print.cc: Use fallback implementation for lround on MSVC
Unfortuately Visual Studio (still) does not support the C99 function
lround, so provide a fallback implementation for it.
|
|
7ec83051
|
2012-06-07T13:32:57
|
|
Fix warnings
|
|
8caf5dcd
|
2012-05-13T17:10:18
|
|
Minor
|
|
50f630c1
|
2012-05-13T13:03:44
|
|
Remove ioctl checks
Ended up not using terminal size after all.
|
|
db0de7cd
|
2012-05-13T13:02:38
|
|
[util] Set ansi color only on color change
|
|
52e7b142
|
2012-05-13T02:02:58
|
|
[util] Make hb-view print out Unicode art if stdout is a terminal
|