From 4ad24c0dc21a362aeb61508ec32dec079cfe5220 Mon Sep 17 00:00:00 2001 From: Janne Kiiskila Date: Mon, 19 Aug 2019 18:28:22 +0300 Subject: [PATCH 1/2] FATFS - Fix copyright year It's 2019 now. --- features/storage/filesystem/fat/FATFileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/storage/filesystem/fat/FATFileSystem.cpp b/features/storage/filesystem/fat/FATFileSystem.cpp index 12b3d0871e..81d142c8b0 100644 --- a/features/storage/filesystem/fat/FATFileSystem.cpp +++ b/features/storage/filesystem/fat/FATFileSystem.cpp @@ -1,5 +1,5 @@ /* mbed Microcontroller Library - * Copyright (c) 2006-2012 ARM Limited + * Copyright (c) 2006-2019 ARM Limited * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal From f149b4c309bbd780e67e36752b167ad832e3723c Mon Sep 17 00:00:00 2001 From: Janne Kiiskila Date: Mon, 19 Aug 2019 18:54:32 +0300 Subject: [PATCH 2/2] IAR / FATFS - Pe029 error IAR compilation fails at `_fs = { 0 };` due to ``` [Error] FATFileSystem.cpp@285,0: [Pe029]: expected an expression ``` Changing that object initializer list instead, as that seems to pass IAR compilation, too. Changed original memset to object initialiser list based on review feedback from Kevin Bracey. --- features/storage/filesystem/fat/FATFileSystem.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/features/storage/filesystem/fat/FATFileSystem.cpp b/features/storage/filesystem/fat/FATFileSystem.cpp index 81d142c8b0..90229131f2 100644 --- a/features/storage/filesystem/fat/FATFileSystem.cpp +++ b/features/storage/filesystem/fat/FATFileSystem.cpp @@ -280,9 +280,8 @@ extern "C" DRESULT disk_ioctl(BYTE pdrv, BYTE cmd, void *buff) // Filesystem implementation (See FATFilySystem.h) FATFileSystem::FATFileSystem(const char *name, BlockDevice *bd) - : FileSystem(name), _id(-1) + : FileSystem(name), _fs(), _id(-1) { - _fs = { 0 }; if (bd) { mount(bd); }