Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 680 Bytes

compiler-warning-level-1-c4033.md

File metadata and controls

31 lines (25 loc) · 680 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4033
Compiler Warning (level 1) C4033
11/04/2016
C4033
C4033
189a9ec3-ff6d-49dd-b9b2-530b28bbb7c9

Compiler Warning (level 1) C4033

'function' must return a value

The function does not return a value. An undefined value is returned.

Functions that use return without a return value must be declared as type void.

This error is for C language code.

The following sample generates C4033:

// C4033.c
// compile with: /W1 /LD
int test_1(int x)   // C4033 expected
{
   if (x)
   {
      return;   // C4033
   }
}