Merge pull request #3405 from blckmn/minor_fixes
Minor warning removals
This commit is contained in:
commit
5353c136d1
8
Makefile
8
Makefile
|
@ -1345,22 +1345,20 @@ targets-group-rest: $(GROUP_OTHER_TARGETS)
|
|||
|
||||
|
||||
$(VALID_TARGETS):
|
||||
$(V0) echo "" && \
|
||||
$(V0) @echo "" && \
|
||||
echo "Building $@" && \
|
||||
time $(MAKE) binary hex TARGET=$@ && \
|
||||
echo "Building $@ succeeded."
|
||||
|
||||
|
||||
|
||||
CLEAN_TARGETS = $(addprefix clean_,$(VALID_TARGETS) )
|
||||
TARGETS_CLEAN = $(addsuffix _clean,$(VALID_TARGETS) )
|
||||
|
||||
## clean : clean up temporary / machine-generated files
|
||||
clean:
|
||||
$(V0) echo "Cleaning $(TARGET)"
|
||||
$(V0) @echo "Cleaning $(TARGET)"
|
||||
$(V0) rm -f $(CLEAN_ARTIFACTS)
|
||||
$(V0) rm -rf $(OBJECT_DIR)/$(TARGET)
|
||||
$(V0) echo "Cleaning $(TARGET) succeeded."
|
||||
$(V0) @echo "Cleaning $(TARGET) succeeded."
|
||||
|
||||
## clean_test : clean up temporary / machine-generated files (tests)
|
||||
clean_test:
|
||||
|
|
|
@ -872,7 +872,7 @@ STATIC_UNIT_TESTED uint16_t cmsHandleKey(displayPort_t *pDisplay, uint8_t key)
|
|||
|
||||
uint16_t cmsHandleKeyWithRepeat(displayPort_t *pDisplay, uint8_t key, int repeatCount)
|
||||
{
|
||||
uint16_t ret;
|
||||
uint16_t ret = 0;
|
||||
|
||||
for (int i = 0 ; i < repeatCount ; i++) {
|
||||
ret = cmsHandleKey(pDisplay, key);
|
||||
|
|
|
@ -1164,7 +1164,7 @@ static void cliRxRange(char *cmdline)
|
|||
ptr = cmdline;
|
||||
i = atoi(ptr);
|
||||
if (i >= 0 && i < NON_AUX_CHANNEL_COUNT) {
|
||||
int rangeMin, rangeMax;
|
||||
int rangeMin = 0, rangeMax = 0;
|
||||
|
||||
ptr = nextArg(ptr);
|
||||
if (ptr) {
|
||||
|
|
|
@ -1639,7 +1639,7 @@ static afatfsOperationStatus_e afatfs_appendSuperclusterContinue(afatfsFile_t *f
|
|||
{
|
||||
afatfsAppendSupercluster_t *opState = &file->operation.state.appendSupercluster;
|
||||
|
||||
afatfsOperationStatus_e status;
|
||||
afatfsOperationStatus_e status = AFATFS_OPERATION_FAILURE;
|
||||
|
||||
doMore:
|
||||
switch (opState->phase) {
|
||||
|
@ -2387,7 +2387,7 @@ static afatfsFilePtr_t afatfs_allocateFileHandle()
|
|||
static afatfsOperationStatus_e afatfs_ftruncateContinue(afatfsFilePtr_t file, bool markDeleted)
|
||||
{
|
||||
afatfsTruncateFile_t *opState = &file->operation.state.truncateFile;
|
||||
afatfsOperationStatus_e status;
|
||||
afatfsOperationStatus_e status = AFATFS_OPERATION_FAILURE;
|
||||
|
||||
#ifdef AFATFS_USE_FREEFILE
|
||||
uint32_t oldFreeFileStart, freeFileGrow;
|
||||
|
|
|
@ -212,7 +212,7 @@ void spektrumBind(rxConfig_t *rxConfig)
|
|||
}
|
||||
|
||||
// Determine a pin to use
|
||||
ioTag_t bindPin;
|
||||
ioTag_t bindPin = IO_TAG_NONE;
|
||||
|
||||
if (rxConfig->spektrum_bind_pin_override_ioTag) {
|
||||
bindPin = rxConfig->spektrum_bind_pin_override_ioTag;
|
||||
|
|
|
@ -120,7 +120,7 @@ void pgResetFn_accelerometerConfig(accelerometerConfig_t *instance)
|
|||
|
||||
bool accDetect(accDev_t *dev, accelerationSensor_e accHardwareToUse)
|
||||
{
|
||||
accelerationSensor_e accHardware;
|
||||
accelerationSensor_e accHardware = ACC_NONE;
|
||||
|
||||
#ifdef USE_ACC_ADXL345
|
||||
drv_adxl345_config_t acc_params;
|
||||
|
|
Loading…
Reference in New Issue