[Bug target/12477] Request to add ability to disable inline/dllimport warnings
--- Comment #15 from pinskia at gcc dot gnu dot org 2006-11-26 05:58 --- No feedback in 3 months about the -Wno-attributes option and the current behavior of GCC so closing. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|WAITING |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12477
[Bug target/12477] Request to add ability to disable inline/dllimport warnings
--- Comment #13 from serzholino at gmail dot com 2006-08-27 16:20 --- Confirmed with qt4 on win32 -- serzholino at gmail dot com changed: What|Removed |Added CC||serzholino at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12477
[Bug target/12477] Request to add ability to disable inline/dllimport warnings
--- Comment #14 from dannysmith at users dot sourceforge dot net 2006-08-27 21:14 --- (In reply to comment #12) This happens with Qt4 Win32 as well - lot of warnings - warning: inline function... attribute ignored. All that's needed is a -Wno-inline-dllimport type of flag to mingw to suppress these warnings. This is current (gcc-4.2) behaviour. What exactly is wrong with using -Wno-attributes to suppress the warnings. Danny // warn-inline-dllimport.c __declspec (dllimport) void f1(); // inline definition (silently) overides earlier dllimport declaration inline void f1() {} // inline dllimport in definition emits warning // both can't be true. inline __declspec (dllimport) void f2 () {} void b() { f1(); f2(); } compiling as: gcc -Wall -c warn-inline-dllimport.c produces: warn-inline-dllimport.c:8: warning: inline function 'f2' declared as dllimport: attribute ignored compiling as: gcc -Wall -Wno-attributes -c warn-inline-dllimport.c gets rid of the attribute warning -- dannysmith at users dot sourceforge dot net changed: What|Removed |Added Status|ASSIGNED|WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12477
[Bug target/12477] Request to add ability to disable inline/dllimport warnings
--- Comment #12 from paragw at excite dot com 2006-08-14 02:38 --- This happens with Qt4 Win32 as well - lot of warnings - warning: inline function... attribute ignored. All that's needed is a -Wno-inline-dllimport type of flag to mingw to suppress these warnings. Specifying dllimport to inline functions seems reasonable though - If the compiler won't inline the function (that's just a hint) people will want to specify dllimport to avoid linker errors, or no? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12477
[Bug target/12477] Request to add ability to disable inline/dllimport warnings
--- Comment #11 from dannysmith at users dot sourceforge dot net 2006-06-30 02:42 --- On today's trunk, your example no longer gives warnings. Instead it compiles, then fails with: C:\tmpG++ -Wall -W test.cpp c:\tmp/ccOGb2M9.o:test.cpp:(.text+0x1e): undefined reference to _imp___ZN1TC1Ev' c:\tmp/ccOGb2M9.o:test.cpp:(.text+0x3b): undefined reference to `_imp___ZN1TD1Ev' collect2: ld returned 1 exit status OK to close? Is that what you want -- dannysmith at users dot sourceforge dot net changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |dannysmith at users dot |dot org |sourceforge dot net Status|NEW |ASSIGNED Last reconfirmed|2005-09-30 05:37:35 |2006-06-30 02:42:42 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12477