Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
d60e9e14
Commit
d60e9e14
authored
11 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Remove some pre-processor warnings that I am more than tired of seeing
parent
968b2553
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fs/fat/fs_fat32.c
+5
-11
5 additions, 11 deletions
fs/fat/fs_fat32.c
with
5 additions
and
11 deletions
fs/fat/fs_fat32.c
+
5
−
11
View file @
d60e9e14
...
...
@@ -228,9 +228,9 @@ static int fat_open(FAR struct file *filep, const char *relpath,
goto
errout_with_semaphore
;
}
#ifde
f CONFIG_FILE_MODE
#
warning "Missing check for privileges based on
inode->i_mode
"
#endif
/* TODO: i
f CONFIG_FILE_MODE
=y, need check for privileges based on
*
inode->i_mode
*/
/* Check if the caller has sufficient privileges to open the file */
...
...
@@ -1897,11 +1897,8 @@ static int fat_unlink(struct inode *mountpt, const char *relpath)
* open reference to the file is closed.
*/
#ifdef CONFIG_CPP_HAVE_WARNING
# warning "Need to defer deleting cluster chain if the file is open"
#endif
/* Remove the file */
/* TODO: Need to defer deleting cluster chain if the file is open. */
ret
=
fat_remove
(
fs
,
relpath
,
false
);
}
...
...
@@ -2158,11 +2155,8 @@ int fat_rmdir(struct inode *mountpt, const char *relpath)
* open reference to the directory is closed.
*/
#ifdef CONFIG_CPP_HAVE_WARNING
# warning "Need to defer deleting cluster chain if the directory is open"
#endif
/* Remove the directory */
/* TODO: Need to defer deleting cluster chain if the file is open. */
ret
=
fat_remove
(
fs
,
relpath
,
true
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment