http://bugs.winehq.org/show_bug.cgi?id=17868
Summary: tools/widl.c: warning: initialization discards qualifiers from pointer target type Product: Wine Version: 1.1.18 Platform: PC OS/Version: Solaris Status: NEW Keywords: download, source Severity: minor Priority: P2 Component: tools AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
gcc -c -I. -I. -I../../include -I../../include -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -g -O2 -o widl.o widl.c widl.c:156: warning: initialization discards qualifiers from pointer target type widl.c:157: warning: initialization discards qualifiers from pointer target type widl.c:158: warning: initialization discards qualifiers from pointer target type widl.c:159: warning: initialization discards qualifiers from pointer target type widl.c:160: warning: initialization discards qualifiers from pointer target type widl.c:161: warning: initialization discards qualifiers from pointer target type widl.c:162: warning: initialization discards qualifiers from pointer target type widl.c:163: warning: initialization discards qualifiers from pointer target type widl.c:164: warning: initialization discards qualifiers from pointer target type
Relevant code: static const struct option long_options[] = { { "dlldata", 1, 0, DLLDATA_OPTION }, { "dlldata-only", 0, 0, DLLDATA_ONLY_OPTION }, { "local-stubs", 1, 0, LOCAL_STUBS_OPTION }, { "oldnames", 0, 0, OLDNAMES_OPTION }, { "prefix-all", 1, 0, PREFIX_ALL_OPTION }, { "prefix-client", 1, 0, PREFIX_CLIENT_OPTION }, { "prefix-server", 1, 0, PREFIX_SERVER_OPTION }, { "win32", 0, 0, WIN32_OPTION }, { "win64", 0, 0, WIN64_OPTION }, { 0, 0, 0, 0 }
http://bugs.winehq.org/show_bug.cgi?id=17868
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2009-03-29 01:31:40 --- Looks like Solaris has broken 'struct option' definition, particularly 'char *name' without 'const'.
http://bugs.winehq.org/show_bug.cgi?id=17868
--- Comment #2 from Austin English austinenglish@gmail.com 2009-03-29 10:53:48 --- (In reply to comment #1)
Looks like Solaris has broken 'struct option' definition, particularly 'char *name' without 'const'.
FWIW, from PostgreSQL's configure: # Similarly, use system's getopt_long() only if system provides struct option. # Solaris' getopt() doesn't do what we want for long options, so always use # our versions on that platform. if test "$PORTNAME" = "solaris"; then AC_LIBOBJ(getopt) AC_LIBOBJ(getopt_long) elif test x"$ac_cv_type_struct_option" = xyes ; then AC_REPLACE_FUNCS([getopt_long]) else AC_LIBOBJ(getopt_long) fi
http://bugs.winehq.org/show_bug.cgi?id=17868
--- Comment #3 from Dmitry Timoshkov dmitry@codeweavers.com 2009-03-30 08:04:11 --- Looks like other similar bugs you filed are actually duplicates of this one.
http://bugs.winehq.org/show_bug.cgi?id=17868
--- Comment #4 from Austin English austinenglish@gmail.com 2009-03-30 12:24:18 --- (In reply to comment #3)
Looks like other similar bugs you filed are actually duplicates of this one.
If it's the same root cause, then I suppose so...
http://bugs.winehq.org/show_bug.cgi?id=17868
--- Comment #5 from Austin English austinenglish@gmail.com 2009-03-30 12:27:15 --- *** Bug 17869 has been marked as a duplicate of this bug. ***
--- Comment #6 from Austin English austinenglish@gmail.com 2009-03-30 12:27:22 --- *** Bug 17870 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=17868
--- Comment #5 from Austin English austinenglish@gmail.com 2009-03-30 12:27:15 --- *** Bug 17869 has been marked as a duplicate of this bug. ***
--- Comment #6 from Austin English austinenglish@gmail.com 2009-03-30 12:27:22 --- *** Bug 17870 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=17868
--- Comment #7 from Austin English austinenglish@gmail.com 2009-03-30 12:27:28 --- *** Bug 17871 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=17868
--- Comment #8 from Austin English austinenglish@gmail.com 2009-03-30 12:28:11 --- *** Bug 17872 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=17868
--- Comment #9 from Austin English austinenglish@gmail.com 2010-09-23 03:15:03 CDT --- Still present.
http://bugs.winehq.org/show_bug.cgi?id=17868
--- Comment #10 from butraxz@gmail.com 2013-05-11 05:11:56 CDT --- Solaris is deprecated. Please close.
http://bugs.winehq.org/show_bug.cgi?id=17868
--- Comment #11 from Austin English austinenglish@gmail.com 2013-05-11 13:39:41 CDT --- (In reply to comment #10)
Solaris is deprecated. Please close.
I don't know where you got that from..
https://bugs.winehq.org/show_bug.cgi?id=17868
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #12 from Fabian Maurer dark.shadow4@web.de --- Is this still an issue? IMHO it should be fixed, but I can't really test...
https://bugs.winehq.org/show_bug.cgi?id=17868
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fgouget@codeweavers.com
--- Comment #13 from Austin English austinenglish@gmail.com --- I don't have a solaris machine available at the moment (and lack disk space on my laptop to set one up).
IIRC Francois may have one, perhaps he can test.
https://bugs.winehq.org/show_bug.cgi?id=17868
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #14 from Alexandre Julliard julliard@winehq.org --- We are not using the system getopt anymore.
https://bugs.winehq.org/show_bug.cgi?id=17868
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |a01532200d7e04ab087380ec731 | |25f8183ae9840
https://bugs.winehq.org/show_bug.cgi?id=17868
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.12.