* Fixing compiler warnings with -Wextra * More warnings suppression, WIP * Even more warning fixes * Added new lines at end of text files. * Padding fix * Additional fixes to warnings on different build configurations; added -Wextra to default build pipeline * Fixes for Secplus v1 * -additional warnings * +-Wredundant-decls fixes * FuriHal: print stack overflow task name in console * FuriHal: add missing include Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
#include <furi.h>
 | 
						|
#include <furi_hal.h>
 | 
						|
#include "notification.h"
 | 
						|
#include "notification_messages.h"
 | 
						|
#include "notification_app.h"
 | 
						|
 | 
						|
void notification_message(NotificationApp* app, const NotificationSequence* sequence) {
 | 
						|
    NotificationAppMessage m = {
 | 
						|
        .type = NotificationLayerMessage, .sequence = sequence, .back_event = NULL};
 | 
						|
    furi_check(osMessageQueuePut(app->queue, &m, 0, osWaitForever) == osOK);
 | 
						|
};
 | 
						|
 | 
						|
void notification_internal_message(NotificationApp* app, const NotificationSequence* sequence) {
 | 
						|
    NotificationAppMessage m = {
 | 
						|
        .type = InternalLayerMessage, .sequence = sequence, .back_event = NULL};
 | 
						|
    furi_check(osMessageQueuePut(app->queue, &m, 0, osWaitForever) == osOK);
 | 
						|
};
 | 
						|
 | 
						|
void notification_message_block(NotificationApp* app, const NotificationSequence* sequence) {
 | 
						|
    NotificationAppMessage m = {
 | 
						|
        .type = NotificationLayerMessage,
 | 
						|
        .sequence = sequence,
 | 
						|
        .back_event = osEventFlagsNew(NULL)};
 | 
						|
    furi_check(osMessageQueuePut(app->queue, &m, 0, osWaitForever) == osOK);
 | 
						|
    osEventFlagsWait(m.back_event, NOTIFICATION_EVENT_COMPLETE, osFlagsWaitAny, osWaitForever);
 | 
						|
    osEventFlagsDelete(m.back_event);
 | 
						|
};
 | 
						|
 | 
						|
void notification_internal_message_block(
 | 
						|
    NotificationApp* app,
 | 
						|
    const NotificationSequence* sequence) {
 | 
						|
    NotificationAppMessage m = {
 | 
						|
        .type = InternalLayerMessage, .sequence = sequence, .back_event = osEventFlagsNew(NULL)};
 | 
						|
    furi_check(osMessageQueuePut(app->queue, &m, 0, osWaitForever) == osOK);
 | 
						|
    osEventFlagsWait(m.back_event, NOTIFICATION_EVENT_COMPLETE, osFlagsWaitAny, osWaitForever);
 | 
						|
    osEventFlagsDelete(m.back_event);
 | 
						|
};
 |