• Warnings as Errors

    From Relf@21:1/5 to All on Wed Apr 24 07:11:50 2024
    From "Jeff-Relf.Me/C++CodingRules.HTM":

    11. I set " Warnings as Errors "; all but the following warnings are "on":

    c4100: unreferenced parameter. Useful when debugging.
    c4101: unreferenced local variable. OK when debugging.
    c4127 conditional expression is constant.

    while(1) is OK.
    "if ( ComplexExpression, 1 )" is a good debugging technique.

    etc. etc.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Relf on Thu Apr 25 00:27:00 2024
    On Wed, 24 Apr 2024 07:11:50 -0700 (Seattle), Relf wrote:

    while(1) is OK.

    I prefer

    for (;;) { ... }

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Ahlstrom@21:1/5 to Lawrence D'Oliveiro on Thu Apr 25 08:06:25 2024
    Lawrence D'Oliveiro wrote this copyrighted missive and expects royalties:

    On Wed, 24 Apr 2024 07:11:50 -0700 (Seattle), Relf wrote:

    while(1) is OK.

    I prefer

    for (;;) { ... }

    #define forever for (;;)

    --
    October 12, the Discovery.
    It was wonderful to find America, but it would have been more wonderful to miss it. -- Mark Twain, "Pudd'nhead Wilson's Calendar"

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)