Search:

Type: Posts; User: Richardcavell

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    8,736

    Not possible

    But, I'm saying, every possible code path returns a value. The compiler is wrong to think that control could ever reach the closing curly brace. It hasn't understood the code well enough... or...
  2. Replies
    3
    Views
    8,736

    Enumeration values not handled

    Hi, all. I'm compiling with gcc -Wall -Wextra. My functions return an enumeration to the caller, and then the caller deals with it like this:



    switch (result)
    {
    case success:
    /*blah*/...
Results 1 to 2 of 2