diff --git a/engine/client/vgui/vgui_draw.c b/engine/client/vgui/vgui_draw.c index 8ae08584..a1b3fe9f 100644 --- a/engine/client/vgui/vgui_draw.c +++ b/engine/client/vgui/vgui_draw.c @@ -63,7 +63,7 @@ static struct VGUI_CursorSelect, VGUI_GetColor, VGUI_IsInGame, - NULL, + Key_EnableTextInput, VGUI_GetMousePos, VGUI_UtfProcessChar, Platform_GetClipboardText, diff --git a/engine/vgui_api.h b/engine/vgui_api.h index 2ce89226..2412d76d 100644 --- a/engine/vgui_api.h +++ b/engine/vgui_api.h @@ -180,7 +180,7 @@ typedef struct vguiapi_s void (*CursorSelect)( VGUI_DefaultCursor cursor ); byte (*GetColor)( int i, int j ); qboolean (*IsInGame)( void ); - void (*Unused)( void ); + void (*EnableTextInput)( qboolean enable, qboolean force ); void (*GetCursorPos)( int *x, int *y ); int (*ProcessUtfChar)( int ch ); int (*GetClipboardText)( char *buffer, size_t bufferSize ); diff --git a/ref/soft/r_triapi.c b/ref/soft/r_triapi.c index c1867083..88c69695 100644 --- a/ref/soft/r_triapi.c +++ b/ref/soft/r_triapi.c @@ -119,7 +119,7 @@ void GAME_EXPORT TriBegin( int mode1 ) if( mode1 == TRI_QUADS ) mode1 = TRI_TRIANGLE_FAN; mode = mode1; - vertcount = n = vertcount = 0; + n = vertcount = 0; } /* diff --git a/wscript b/wscript index be23b686..541c8adc 100644 --- a/wscript +++ b/wscript @@ -218,6 +218,9 @@ def configure(conf): '-Werror=sizeof-pointer-memaccess', '-Werror=sizeof-array-div', '-Werror=sizeof-pointer-div', + '-Werror=string-compare', + '-Werror=use-after-free=3', + '-Werror=sequence-point', # '-Werror=format=2', # '-Wdouble-promotion', # disable warning flood '-Wstrict-aliasing',