<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/compat/compiler.h, branch jch</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=jch</id>
<link rel='self' href='https://git.shady.money/git/atom?h=jch'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-10-17T18:42:27Z</updated>
<entry>
<title>mingw.c: Fix complier warnings for a 64 bit msvc</title>
<updated>2024-10-17T18:42:27Z</updated>
<author>
<name>Sören Krecker</name>
<email>soekkle@freenet.de</email>
</author>
<published>2024-10-17T17:18:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=386d372031a76e508591090b09630e1af72c5c9d'/>
<id>urn:sha1:386d372031a76e508591090b09630e1af72c5c9d</id>
<content type='text'>
Remove some complier warnings from msvc in compat/mingw.c for value
truncation from 64 bit to 32 bit integers.

Compiling compat/mingw.c under a 64 bit version of msvc produces
warnings. An "int" is 32 bit, and ssize_t or size_t should be 64 bit
long. Prepare compat/vcbuild/include/unistd.h to have a 64 bit type
_ssize_t, when _WIN64 is defined and 32 bit otherwise.

Further down in this include file, as before, ssize_t is defined as
_ssize_t, if needed.

Use size_t instead of int for all variables that hold the result of
strlen() or wcslen() (which cannot be negative).

Use ssize_t to hold the return value of read().

Signed-off-by: Sören Krecker &lt;soekkle@freenet.de&gt;
Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
</content>
</entry>
<entry>
<title>compat: drop inclusion of &lt;git-compat-util.h&gt;</title>
<updated>2024-02-24T22:37:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-02-24T20:32:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2ca6c07db24fb6760ac38e3c7d45ee7b6c07f24e'/>
<id>urn:sha1:2ca6c07db24fb6760ac38e3c7d45ee7b6c07f24e</id>
<content type='text'>
These two header files are included from ordinary source files that
already include &lt;git-compat-util.h&gt; as the first header file as they
should.  There is no need to include the compat-util in these
headers.

"make hdr-check" is not affected, as it is designed to assume that
what &lt;git-compat-util.h&gt; offers is available to everybody without
being included.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bugreport: add compiler info</title>
<updated>2020-04-16T22:23:42Z</updated>
<author>
<name>Emily Shaffer</name>
<email>emilyshaffer@google.com</email>
</author>
<published>2020-04-16T21:18:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=69bcbbceb74904e4f0f5001453072a34e3fed740'/>
<id>urn:sha1:69bcbbceb74904e4f0f5001453072a34e3fed740</id>
<content type='text'>
To help pinpoint the source of a regression, it is useful to know some
info about the compiler which the user's Git client was built with. By
adding a generic get_compiler_info() in 'compat/' we can choose which
relevant information to share per compiler; to get started, let's
demonstrate the version of glibc if the user built with 'gcc'.

Signed-off-by: Emily Shaffer &lt;emilyshaffer@google.com&gt;
Helped-by: Đoàn Trần Công Danh &lt;congdanhqx@gmail.com&gt;
Helped-by: Johannes Schindelin &lt;Johannes.Schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
