auto-sync
This commit is contained in:
parent
55519eb0f8
commit
d158979594
|
@ -10,7 +10,7 @@ PROJECT_DIR = .
|
|||
ifeq ($(USE_OPT),)
|
||||
# USE_OPT = -O2 -ggdb -std=gnu99 -fomit-frame-pointer -falign-functions=16
|
||||
# USE_OPT = $(RFLAGS) -O1 -fgnu89-inline -ggdb -fomit-frame-pointer -falign-functions=16 -std=gnu99 -Werror-implicit-function-declaration -Werror -Wno-error=pointer-sign -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter -Wno-error=missing-field-initializers
|
||||
USE_OPT = $(RFLAGS) -O2 -fomit-frame-pointer -falign-functions=16 -Werror-implicit-function-declaration -Werror -Wno-error=pointer-sign -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter -Wno-error=missing-field-initializers -Werror=type-limits -Wno-error=strict-aliasing -Wno-error=attributes
|
||||
USE_OPT = $(EXTRA_PARAMS) $(RFLAGS) -O2 -fomit-frame-pointer -falign-functions=16 -Werror-implicit-function-declaration -Werror -Wno-error=pointer-sign -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter -Wno-error=missing-field-initializers -Werror=type-limits -Wno-error=strict-aliasing -Wno-error=attributes
|
||||
endif
|
||||
|
||||
# C specific options here (added to USE_OPT).
|
||||
|
|
|
@ -27,10 +27,8 @@
|
|||
* in chconf.h
|
||||
*
|
||||
*/
|
||||
#define EFI_ENABLE_ASSERTS TRUE
|
||||
|
||||
#ifndef EFI_ENABLE_ASSERTS
|
||||
#define EFI_ENABLE_ASSERTS FALSE
|
||||
#if !defined(EFI_ENABLE_ASSERTS) || defined(__DOXYGEN__)
|
||||
#define EFI_ENABLE_ASSERTS TRUE
|
||||
#endif /* EFI_ENABLE_ASSERTS */
|
||||
|
||||
//#define EFI_UART_ECHO_TEST_MODE TRUE
|
||||
|
|
|
@ -77,7 +77,9 @@ char * swapOutputBuffers(int *actualOutputBufferSize) {
|
|||
*/
|
||||
char *temp = outputBuffer;
|
||||
|
||||
#if EFI_ENABLE_ASSERTS
|
||||
expectedOutputSize = accumulatedSize;
|
||||
#endif /* EFI_ENABLE_ASSERTS */
|
||||
outputBuffer = accumulationBuffer;
|
||||
|
||||
accumulationBuffer = temp;
|
||||
|
|
Loading…
Reference in New Issue