lots of warnings with stlport

G

Gernot Frisch

Hi,

we have to use stlport here, but With a code like this:



void DoSomething(int english_version)
{
// make no use of english_version
}


I get this compiler output:

e:\GeFr\Work\cobf_1.04\XWallsQuellen\xcwsystem.cpp(1451) : warning
C4100: 'english_version': Unreferenzierter formaler Parameter

e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]


I use VC++7.1. BTW: Can I make the compiler errors english somehow??
 
C

Chris Theis

Gernot Frisch said:
Hi,

we have to use stlport here, but With a code like this:



void DoSomething(int english_version)
{
// make no use of english_version
}


I get this compiler output:

e:\GeFr\Work\cobf_1.04\XWallsQuellen\xcwsystem.cpp(1451) : warning C4100:
'english_version': Unreferenzierter formaler Parameter

e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]


I use VC++7.1. BTW: Can I make the compiler errors english somehow??

You're obviously using a german version of VC++ but probably there is a
switch for the original messages. Anyway, you should ask that question
better in MS specific newsgroup. Regarding the warning itself, where is the
problem?

Cheers
Chris
 
J

John Carson

Gernot Frisch said:
Hi,

we have to use stlport here, but With a code like this:



void DoSomething(int english_version)
{
// make no use of english_version
}


I get this compiler output:

e:\GeFr\Work\cobf_1.04\XWallsQuellen\xcwsystem.cpp(1451) : warning
C4100: 'english_version': Unreferenzierter formaler Parameter

I don't know anything about stlport, but is it possible for you to eliminate
the parameter from the function signature, i.e., define the function as

void DoSomething(int)
{
// make no use of english_version
}

I think this might stop the warnings.
 
G

Gernot Frisch

John Carson said:
I don't know anything about stlport, but is it possible for you to
eliminate the parameter from the function signature, i.e., define
the function as

void DoSomething(int)
{
// make no use of english_version
}

I think this might stop the warnings.

Yes, but I don't mind the warning, I mind the loooong stuff after the
warning. The template stuff.
 
B

Ben Pope

Gernot said:
Hi,

we have to use stlport here, but With a code like this:



void DoSomething(int english_version)
{
// make no use of english_version
}


I get this compiler output:

e:\GeFr\Work\cobf_1.04\XWallsQuellen\xcwsystem.cpp(1451) : warning
C4100: 'english_version': Unreferenzierter formaler Parameter

e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]


I use VC++7.1. BTW: Can I make the compiler errors english somehow??

Try STLFilt.

Ben Pope
 
J

John Carson

Gernot Frisch said:
Yes, but I don't mind the warning, I mind the loooong stuff after the
warning. The template stuff.


I was assuming that the one was causing the other. I don't read German or
Dutch (if that is what it is), so I don't know what the compiler is
complaining about.
 
G

Gernot Frisch

I was assuming that the one was causing the other. I don't read
German or
Dutch (if that is what it is), so I don't know what the compiler is
complaining about.

Right you are. But the error that follows has absolutely nothing to do
with an unreferenced variable. it's so stupid!
I though this problem is known (stlport), so I just gave it a try.
 
J

Jacek Dziedzic

Gernot said:
Hi,

we have to use stlport here, but With a code like this:



void DoSomething(int english_version)
{
// make no use of english_version
}


I get this compiler output:

e:\GeFr\Work\cobf_1.04\XWallsQuellen\xcwsystem.cpp(1451) : warning
C4100: 'english_version': Unreferenzierter formaler Parameter

e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
e:\GeFr\Classes\Modules\Qt\23\stlport-4.6\stlport\stdexcept(149):
Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage
'_STL::basic_string<_CharT,_Traits,_Alloc>'
with
[
_CharT=char,
_Traits=_STL::char_traits<char>,
_Alloc=_STL::allocator<char>
]
> [...]

Isn't it that the case of "warning: unreferenced formal parameter ..."
trying to instantiate this, and this, and this, and that, and that...?

STLfilt might help make the stl part more readable.

You could also turn the particular compiler warning off
or try

english_version = english_version;

inside your DoSomething() to shut the compiler up.

HTH,
- J.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top