-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
utils.c:utils_locale_to_utf8() specifies incorrect type for iconv_h #387
Comments
Ratio2
pushed a commit
to Ratio2/vbox
that referenced
this issue
Apr 7, 2021
include/iprt/x86.h: Undefine MSR_IA32_FLUSH_CMD to avoid warning about '"MSR_IA32_FLUSH_CMD" redefined' when compiling SUPLibLdr.cpp. SUPLibLdr.cpp includes <stdlib.h> which ultimately pulls in <sys/controlregs.h> which has its own definition of MSR_IA32_FLUSH_CMD. Additions/solaris/SharedFolders: Updated a handful of function prototypes under SharedFolders/solaris10 which don't take any arguments to be explicitly declared as 'function(void)' to silence gcc warnings from -Wstrict-prototypes. Main/src-server/solaris: Fixed two places where -Wconversion identified possible alteration of the value due to different sized types. RDP/client: Addressed an incorrect conversion descriptor type passed to iconv(3C) in utils.c:utils_locale_to_utf8() (corresponding to unresolved upstream issue #387 (rdesktop/rdesktop#387). Tidied up some inconsistent iconv(3C) argument type usage: the use of -D__USE_LEGACY_PROTOTYPES__ requires -DICONV_CONST=const. Fixed some incorrect strncpy()/strcat() calls using the corresponding code from upstream. git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@88297 cfe28804-0f27-0410-a406-dd0f0b0b656f
axbannaz
pushed a commit
to axbannaz/vbox
that referenced
this issue
Apr 9, 2021
include/iprt/x86.h: Undefine MSR_IA32_FLUSH_CMD to avoid warning about '"MSR_IA32_FLUSH_CMD" redefined' when compiling SUPLibLdr.cpp. SUPLibLdr.cpp includes <stdlib.h> which ultimately pulls in <sys/controlregs.h> which has its own definition of MSR_IA32_FLUSH_CMD. Additions/solaris/SharedFolders: Updated a handful of function prototypes under SharedFolders/solaris10 which don't take any arguments to be explicitly declared as 'function(void)' to silence gcc warnings from -Wstrict-prototypes. Main/src-server/solaris: Fixed two places where -Wconversion identified possible alteration of the value due to different sized types. RDP/client: Addressed an incorrect conversion descriptor type passed to iconv(3C) in utils.c:utils_locale_to_utf8() (corresponding to unresolved upstream issue #387 (rdesktop/rdesktop#387). Tidied up some inconsistent iconv(3C) argument type usage: the use of -D__USE_LEGACY_PROTOTYPES__ requires -DICONV_CONST=const. Fixed some incorrect strncpy()/strcat() calls using the corresponding code from upstream. git-svn-id: http://www.virtualbox.org/svn/vbox/trunk@88297 cfe28804-0f27-0410-a406-dd0f0b0b656f
sergiomb2
pushed a commit
to sergiomb2/VirtualBox
that referenced
this issue
Apr 21, 2021
include/iprt/x86.h: Undefine MSR_IA32_FLUSH_CMD to avoid warning about '"MSR_IA32_FLUSH_CMD" redefined' when compiling SUPLibLdr.cpp. SUPLibLdr.cpp includes <stdlib.h> which ultimately pulls in <sys/controlregs.h> which has its own definition of MSR_IA32_FLUSH_CMD. Additions/solaris/SharedFolders: Updated a handful of function prototypes under SharedFolders/solaris10 which don't take any arguments to be explicitly declared as 'function(void)' to silence gcc warnings from -Wstrict-prototypes. Main/src-server/solaris: Fixed two places where -Wconversion identified possible alteration of the value due to different sized types. RDP/client: Addressed an incorrect conversion descriptor type passed to iconv(3C) in utils.c:utils_locale_to_utf8() (corresponding to unresolved upstream issue #387 (rdesktop/rdesktop#387). Tidied up some inconsistent iconv(3C) argument type usage: the use of -D__USE_LEGACY_PROTOTYPES__ requires -DICONV_CONST=const. Fixed some incorrect strncpy()/strcat() calls using the corresponding code from upstream. git-svn-id: http://www.virtualbox.org/svn/vbox@88297 cfe28804-0f27-0410-a406-dd0f0b0b656f
zzyuzzz
added a commit
to zzyuzzz/vboxgit
that referenced
this issue
Jun 12, 2022
…---------------- r88297 | vboxsync | 2021-03-26 20:29:59 +0800 (Fri, 26 Mar 2021) | 23 lines Some small Solaris-specific build warning fixes: include/iprt/x86.h: Undefine MSR_IA32_FLUSH_CMD to avoid warning about '"MSR_IA32_FLUSH_CMD" redefined' when compiling SUPLibLdr.cpp. SUPLibLdr.cpp includes <stdlib.h> which ultimately pulls in <sys/controlregs.h> which has its own definition of MSR_IA32_FLUSH_CMD. Additions/solaris/SharedFolders: Updated a handful of function prototypes under SharedFolders/solaris10 which don't take any arguments to be explicitly declared as 'function(void)' to silence gcc warnings from -Wstrict-prototypes. Main/src-server/solaris: Fixed two places where -Wconversion identified possible alteration of the value due to different sized types. RDP/client: Addressed an incorrect conversion descriptor type passed to iconv(3C) in utils.c:utils_locale_to_utf8() (corresponding to unresolved upstream issue #387 (rdesktop/rdesktop#387). Tidied up some inconsistent iconv(3C) argument type usage: the use of -D__USE_LEGACY_PROTOTYPES__ requires -DICONV_CONST=const. Fixed some incorrect strncpy()/strcat() calls using the corresponding code from upstream. ------------------------------------------------------------------------
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The iconv_h variable represents a 'conversion descriptor' as returned by iconv_open(3) which
the man page describes as:
The current implementation specifies iconv_h as a pointer to a conversion descriptor
which the compiler flags as being incorrect for all subsequent uses where a regular
conversion descriptor is expected:
The following one line change fixes this issue and allows the compiler to build utils.c
without any warnings or errors:
The text was updated successfully, but these errors were encountered: