Thread: <Gulp>

  1. #1
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638

    <Gulp>

    <Gulp>

    Code:
    MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
            bcc32 -c -tWM- -w -w-par -w-inl -W -a1 -Od /c App9s0043.c
    Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
    app9s0043.c:
    Warning W8013 app9s0043.c 354: Possible use of 'hwnd' before definition in funct
    ion testd
    Warning W8070 app9s0043.c 359: Function should return a value in function testd
    Warning W8084 app9s0043.c 609: Suggest parentheses to clarify precedence in func
    tion MDIChildWndProc
    Warning W8080 app9s0043.c 728: 'nstrpb' is declared but never used in function M
    DIChildWndProc
    Warning W8080 app9s0043.c 728: 'nstrp' is declared but never used in function MD
    IChildWndProc
    Warning W8004 app9s0043.c 728: 'm' is assigned a value that is never used in fun
    ction MDIChildWndProc
    Warning W8080 app9s0043.c 728: 'a' is declared but never used in function MDIChi
    ldWndProc
    Warning W8075 app9s0043.c 762: Suspicious pointer conversion in function MDIChil
    dWndProc
    Warning W8004 app9s0043.c 782: 'nstrpb' is assigned a value that is never used i
    n function MDIChildWndProc
    Warning W8004 app9s0043.c 782: 'tempd' is assigned a value that is never used in
     function MDIChildWndProc
    Warning W8004 app9s0043.c 782: 'm' is assigned a value that is never used in fun
    ction MDIChildWndProc
    Warning W8080 app9s0043.c 782: 'a' is declared but never used in function MDIChi
    ldWndProc
    Warning W8066 app9s0043.c 786: Unreachable code in function MDIChildWndProc
    Warning W8071 app9s0043.c 840: Conversion may lose significant digits in functio
    n MDIChildWndProc
    Warning W8004 app9s0043.c 880: 'nstrpb' is assigned a value that is never used i
    n function MDIChildWndProc
    Warning W8004 app9s0043.c 880: 'nstrp' is assigned a value that is never used in
     function MDIChildWndProc
    Warning W8004 app9s0043.c 880: 'binstrtemp1' is assigned a value that is never u
    sed in function MDIChildWndProc
    Warning W8066 app9s0043.c 891: Unreachable code in function MDIChildWndProc
    Warning W8013 app9s0043.c 1031: Possible use of 'b' before definition in functio
    n MDIChildWndProc
    Warning W8075 app9s0043.c 1043: Suspicious pointer conversion in function MDIChi
    ldWndProc
    Warning W8080 app9s0043.c 1101: 'ptrw' is declared but never used in function MD
    IChildWndProc
    Warning W8004 app9s0043.c 1101: 'w' is assigned a value that is never used in fu
    nction MDIChildWndProc
    Warning W8080 app9s0043.c 1101: 'ptrs' is declared but never used in function MD
    IChildWndProc
    Warning W8080 app9s0043.c 1101: 's' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1101: 'ptrtemp' is declared but never used in function
     MDIChildWndProc
    Warning W8080 app9s0043.c 1101: 'testa' is declared but never used in function M
    DIChildWndProc
    Warning W8080 app9s0043.c 1101: 'bac' is declared but never used in function MDI
    ChildWndProc
    Warning W8080 app9s0043.c 1101: 'm' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1101: 'g' is declared but never used in function MDICh
    ildWndProc
    Warning W8004 app9s0043.c 1101: 'd' is assigned a value that is never used in fu
    nction MDIChildWndProc
    Warning W8080 app9s0043.c 1101: 'i' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1101: 'a' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1179: 'testa' is declared but never used in function M
    DIChildWndProc
    Warning W8080 app9s0043.c 1179: 'bac' is declared but never used in function MDI
    ChildWndProc
    Warning W8004 app9s0043.c 1213: 'bac' is assigned a value that is never used in
    function MDIChildWndProc
    Warning W8080 app9s0043.c 1213: 'd' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1213: 'b' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1213: 'i' is declared but never used in function MDICh
    ildWndProc
    Warning W8004 app9s0043.c 1245: 'bac' is assigned a value that is never used in
    function MDIChildWndProc
    Warning W8080 app9s0043.c 1245: 'd' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1245: 'b' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1245: 'i' is declared but never used in function MDICh
    ildWndProc
    Warning W8004 app9s0043.c 1277: 'bac' is assigned a value that is never used in
    function MDIChildWndProc
    Warning W8080 app9s0043.c 1277: 'd' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1277: 'b' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1277: 'i' is declared but never used in function MDICh
    ildWndProc
    Warning W8004 app9s0043.c 1309: 'bac' is assigned a value that is never used in
    function MDIChildWndProc
    Warning W8080 app9s0043.c 1309: 'd' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1309: 'b' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1309: 'i' is declared but never used in function MDICh
    ildWndProc
    Warning W8004 app9s0043.c 1342: 'bac' is assigned a value that is never used in
    function MDIChildWndProc
    Warning W8080 app9s0043.c 1342: 'd' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1342: 'b' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1342: 'i' is declared but never used in function MDICh
    ildWndProc
    Warning W8004 app9s0043.c 1374: 'bac' is assigned a value that is never used in
    function MDIChildWndProc
    Warning W8080 app9s0043.c 1374: 'd' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1374: 'b' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1374: 'i' is declared but never used in function MDICh
    ildWndProc
    Warning W8004 app9s0043.c 1406: 'bac' is assigned a value that is never used in
    function MDIChildWndProc
    Warning W8080 app9s0043.c 1406: 'd' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1406: 'b' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1406: 'i' is declared but never used in function MDICh
    ildWndProc
    Warning W8060 app9s0043.c 1445: Possibly incorrect assignment in function MDIChi
    ldWndProc
    Warning W8060 app9s0043.c 1446: Possibly incorrect assignment in function MDIChi
    ldWndProc
    Warning W8060 app9s0043.c 1447: Possibly incorrect assignment in function MDIChi
    ldWndProc
    Warning W8060 app9s0043.c 1448: Possibly incorrect assignment in function MDIChi
    ldWndProc
    Warning W8060 app9s0043.c 1449: Possibly incorrect assignment in function MDIChi
    ldWndProc
    Warning W8080 app9s0043.c 1487: 'testa' is declared but never used in function M
    DIChildWndProc
    Warning W8080 app9s0043.c 1487: 'temp' is declared but never used in function MD
    IChildWndProc
    Warning W8080 app9s0043.c 1487: 'bac' is declared but never used in function MDI
    ChildWndProc
    Warning W8004 app9s0043.c 1487: 'i' is assigned a value that is never used in fu
    nction MDIChildWndProc
    Warning W8004 app9s0043.c 1520: 'bac' is assigned a value that is never used in
    function MDIChildWndProc
    Warning W8080 app9s0043.c 1520: 'd' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1520: 'b' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1520: 'i' is declared but never used in function MDICh
    ildWndProc
    Warning W8004 app9s0043.c 1552: 'bac' is assigned a value that is never used in
    function MDIChildWndProc
    Warning W8080 app9s0043.c 1552: 'd' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1552: 'b' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1552: 'i' is declared but never used in function MDICh
    ildWndProc
    Warning W8004 app9s0043.c 1584: 'bac' is assigned a value that is never used in
    function MDIChildWndProc
    Warning W8080 app9s0043.c 1584: 'd' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1584: 'b' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1584: 'i' is declared but never used in function MDICh
    ildWndProc
    Warning W8004 app9s0043.c 1616: 'bac' is assigned a value that is never used in
    function MDIChildWndProc
    Warning W8080 app9s0043.c 1616: 'd' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1616: 'b' is declared but never used in function MDICh
    ildWndProc
    Warning W8080 app9s0043.c 1616: 'i' is declared but never used in function MDICh
    ildWndProc
    Warning W8060 app9s0043.c 1656: Possibly incorrect assignment in function MDIChi
    ldWndProc
    Warning W8071 app9s0043.c 1656: Conversion may lose significant digits in functi
    on MDIChildWndProc
    Warning W8060 app9s0043.c 1657: Possibly incorrect assignment in function MDIChi
    ldWndProc
    Warning W8071 app9s0043.c 1657: Conversion may lose significant digits in functi
    on MDIChildWndProc
    Warning W8060 app9s0043.c 1658: Possibly incorrect assignment in function MDIChi
    ldWndProc
    Warning W8071 app9s0043.c 1658: Conversion may lose significant digits in functi
    on MDIChildWndProc
    Warning W8060 app9s0043.c 1659: Possibly incorrect assignment in function MDIChi
    ldWndProc
    Warning W8071 app9s0043.c 1659: Conversion may lose significant digits in functi
    on MDIChildWndProc
    Warning W8080 app9s0043.c 1698: 'testa' is declared but never used in function M
    DIChildWndProc
    Warning W8080 app9s0043.c 1698: 'temp' is declared but never used in function MD
    IChildWndProc
    Warning W8080 app9s0043.c 1698: 'bac' is declared but never used in function MDI
    ChildWndProc
    Warning W8004 app9s0043.c 1698: 'i' is assigned a value that is never used in fu
    nction MDIChildWndProc
    Warning W8066 app9s0043.c 1706: Unreachable code in function MDIChildWndProc
    Error E2228 app9s0043.c 1706: Too many error or warning messages in function MDI
    ChildWndProc
    *** 1 errors in Compile ***
    
    ** error 1 ** deleting App9s0043.obj
    
    C:\borland\bcc55\bin>
    Ok... When you are done laughing your tails off....

    ....I beggs too differ....

    Meow! That should be a warning message not an error message telling me that there are too many warnings! meow!

    You should know that it is a rather large project with many files and graphics. It is still in the debug and not compleated yet.
    I know there are many declared varibles that are not used yet becasue it is not done yet.
    <Hissss> but not to compile because of one error that is not an error at all!<Hissss>



    i eventualy did get it to compile. i am rather ashamed to ask becasue i have never used that function of the compiler <borland5.5 free command line tools>
    listed is " -wxxx Warning control " ....so " -w- " would turn off the switch...
    would that turn off the warning messages? or just turn off the error message "Too many error or warning messages in function... "?

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Never tried this in Borland or C.

    Have you tried using something like...

    #pragma warning(once: 8070) //show warning 8070 only once

    #pragma warning(disable: 1706) //disable error 1706
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Possibly incorrect assignment in function MDIChi
    ldWndProc

    This does not look like an undefined symbol error. This error usually results from using the = operator incorrectly.

    if (variable=value) ...

    This will fire that error.

    Want my advice? Fix the warnings now before you expand the code base.
    You want this:

    0 errors.
    0 warnings.
    0 memory leaks.

    Just because a warning is not an error and won't stop compilation does not mean it should be taken lightly.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    Yes, you should aim to get this down to at least single digits, preferably 0.
    Otherwise you're never going to spot the new warning you should be paying attention to if you already have several 1000 as background noise.

  5. #5
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    thank you novacain i will try that.


    Fix the warnings now before you expand the code base.
    yes bubba that is exactly what i was doing. before i fixed the "declaration is not allowed here" i had declared variables in functions which i do all the time but for some reason it would not allow it in this prog. thus leading to a bad habbit of makeing global variables that i have.

    salem i am trying...just thought that the "error" for haveing to many error messages should have been a warning. and funny.

    i started borland with 2.0 and had the 5.5 since it was released for free. i am glad it does win32. i have had it a while and still useing it. am i the only one who get the weird errors? <retorical>
    Last edited by kryptkat; 01-13-2006 at 07:22 AM.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    Well if you're compiling old code with a new compiler, there's usually a flurry of all sorts of new problems and minor issues to be worked through.

  7. #7
    Registered User eth0's Avatar
    Join Date
    Dec 2003
    Posts
    164
    Quote Originally Posted by kryptkat
    am i the only one who get the weird errors?
    I always build with full warnings enabled (-Wall or /W4) and ensure my code is 100% warning free.
    Open source isn't a matter of life or death......
    .......its much more important than that!!


    SuSE Linux - GCC 3.4.2
    XP Pro - Visual Studio 2005 TS, MinGW 3.4.2

  8. #8
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    no not old code. i started typeing it last year.

    i tryed -wall but it still cut off after 26 warnings with the toomanyerrormessage .

    thankyou all for the suggestions.

Popular pages Recent additions subscribe to a feed