diff options
author | Elijah Newren <newren@gmail.com> | 2018-08-15 10:54:10 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-15 11:52:09 -0700 |
commit | 1076f1e454dae338cee8e48f3e69b58181e5e10a (patch) | |
tree | 0b52cb2a3051019850000e0474055ec2360e1cf0 /t/t9165-git-svn-fetch-merge-branch-of-branch.sh | |
parent | compat/precompose_utf8.h: use more common include guard style (diff) | |
download | tgif-1076f1e454dae338cee8e48f3e69b58181e5e10a.tar.xz |
Remove forward declaration of an enum
According to http://c-faq.com/null/machexamp.html, sizeof(char*) !=
sizeof(int*) on some platforms. Since an enum could be a char or int
(or long or...), knowing the size of the enum thus is important to
knowing the size of a pointer to an enum, so we cannot just forward
declare an enum the way we can a struct. (Also, modern C++ compilers
apparently define forward declarations of an enum to either be useless
because the enum was defined, or require an explicit size specifier, or
be a compilation error.)
Helped-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9165-git-svn-fetch-merge-branch-of-branch.sh')
0 files changed, 0 insertions, 0 deletions