Skip to content

Commit

Permalink
cc: fix issue #1371
Browse files Browse the repository at this point in the history
handle correctly invalid -zastd=.. option argument
  • Loading branch information
jmalak committed Jan 17, 2025
1 parent 9c8d449 commit 831a4f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bld/cc/c/coptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Open Watcom Project
*
* Copyright (c) 2002-2024 The Open Watcom Contributors. All Rights Reserved.
* Copyright (c) 2002-2025 The Open Watcom Contributors. All Rights Reserved.
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
* ========================================================================
Expand Down Expand Up @@ -192,7 +192,11 @@ static bool checkSTD( unsigned *value )
cstd = STD_C89;
} else if( CmdRecogChar( '9' ) && CmdRecogChar( '9' ) ) {
cstd = STD_C99;
} else {
BadCmdLineChar();
}
} else {
BadCmdLineChar();
}
}
if( cstd != STD_NONE ) {
Expand Down

0 comments on commit 831a4f7

Please sign in to comment.