lots of warnings with stlport

Discussion in 'C++' started by Gernot Frisch, Dec 19, 2005.

  1. 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??


    --
    -Gernot
    int main(int argc, char** argv) {printf
    ("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
     
    Gernot Frisch, Dec 19, 2005
    #1
    1. Advertising

  2. Gernot Frisch

    Chris Theis Guest

    "Gernot Frisch" <> wrote in message
    news:...
    > 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
     
    Chris Theis, Dec 19, 2005
    #2
    1. Advertising

  3. Gernot Frisch

    John Carson Guest

    "Gernot Frisch" <> wrote in message
    news:
    > 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.


    --
    John Carson
     
    John Carson, Dec 19, 2005
    #3
  4. "John Carson" <> schrieb im
    Newsbeitrag news:do6221$61m$...
    > "Gernot Frisch" <> wrote in message
    > news:
    >> 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.


    Yes, but I don't mind the warning, I mind the loooong stuff after the
    warning. The template stuff.
     
    Gernot Frisch, Dec 19, 2005
    #4
  5. Gernot Frisch

    Ben Pope Guest

    Gernot Frisch wrote:
    > 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
    --
    I'm not just a number. To many, I'm known as a string...
     
    Ben Pope, Dec 19, 2005
    #5
  6. Gernot Frisch

    John Carson Guest

    "Gernot Frisch" <> wrote in message
    news:
    > "John Carson" <> schrieb im
    > Newsbeitrag news:do6221$61m$...
    >> "Gernot Frisch" <> wrote in message
    >> news:
    >>> 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.

    >
    > 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.

    --
    John Carson
     
    John Carson, Dec 19, 2005
    #6

  7. > 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.
     
    Gernot Frisch, Dec 19, 2005
    #7
  8. Gernot Frisch wrote:
    > 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.
     
    Jacek Dziedzic, Dec 19, 2005
    #8
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. A.L

    STLPort question

    A.L, Jul 24, 2003, in forum: C++
    Replies:
    1
    Views:
    407
    Dan Cernat
    Jul 24, 2003
  2. brad
    Replies:
    9
    Views:
    385
    Bruno Desthuilliers
    Jun 19, 2008
  3. NuclearFusion
    Replies:
    3
    Views:
    90
    NuclearFusion
    Oct 28, 2006
  4. Ted Sung
    Replies:
    1
    Views:
    332
    Sherm Pendley
    Aug 30, 2004
  5. coolneo
    Replies:
    9
    Views:
    203
    coolneo
    Jan 30, 2007
Loading...

Share This Page