tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] unexpected warning when returning from compound expressio


From: Yakov
Subject: [Tinycc-devel] unexpected warning when returning from compound expression
Date: Sat, 8 Jan 2022 18:25:54 +0700

test.c
- - - 8<- - - - - - - - - - - - - 
int f() {
        ({
                return 0;
        });
}

int main(int argc, char**argv) {
}
- - - 8<- - - - - - - - - - - - - 
hello the above program gives me:
test.c:5 warning: function might return no value: 'f'
although obviously the function will return
gcc/clang do not complain here
I forgot the proper term for the "compound _expression_" thing
thanks


reply via email to

[Prev in Thread] Current Thread [Next in Thread]