VirtualBox

Changeset 88297 in vbox for trunk/include/iprt/x86.h


Ignore:
Timestamp:
Mar 26, 2021 12:29:59 PM (4 years ago)
Author:
vboxsync
Message:

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 (https://github.com/rdesktop/rdesktop/issues/387).
Tidied up some inconsistent iconv(3C) argument type usage: the use of
-DUSE_LEGACY_PROTOTYPES requires -DICONV_CONST=const. Fixed some
incorrect strncpy()/strcat() calls using the corresponding code from
upstream.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/x86.h

    r86489 r88297  
    3939#endif
    4040
    41 /* Workaround for Solaris sys/regset.h defining CS, DS */
     41/** Workaround for Solaris sys/regset.h defining CS, DS and sys/controlregs.h
     42 * defining MSR_IA32_FLUSH_CMD */
    4243#ifdef RT_OS_SOLARIS
    4344# undef CS
    4445# undef DS
     46# undef MSR_IA32_FLUSH_CMD
    4547#endif
    4648
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette