The branch, master has been updated
via 3d7293651483130af9e8c5fe685d28b226baa99b (commit)
via 72e0e1e40126a2a9498fb249ca26a727bd670139 (commit)
via bfcdea286df81660b980a3bc91902b5970ff6347 (commit)
from 22b4667a8c3bc483494ba735ba4ae4d5cb8a0f03 (commit)
- Log -----------------------------------------------------------------
commit 3d7293651483130af9e8c5fe685d28b226baa99b
Author: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
Date: Wed Jun 4 08:47:07 2025 +0200
Ignore clangd specific files
commit 72e0e1e40126a2a9498fb249ca26a727bd670139
Author: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
Date: Wed Jun 4 08:47:06 2025 +0200
examples/async.c: remove unused includes
commit bfcdea286df81660b980a3bc91902b5970ff6347
Author: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
Date: Wed Jun 4 08:47:05 2025 +0200
examples/async.c: fix sometimes-uninitialized warning
Initialize retval with EXIT_SUCCESS. Otherwise, if there are no errors,
this variable stays uninitialized.
-----------------------------------------------------------------------
Summary of changes:
.gitignore | 4 ++++
examples/async.c | 4 +---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/.gitignore b/.gitignore
index 34f3852..3d04163 100644
--- a/.gitignore
+++ b/.gitignore
@@ -53,3 +53,7 @@ opt
# ctags
tags
+
+# clangd specific files
+.cache
+compile_commands.json
diff --git a/examples/async.c b/examples/async.c
index 241bb7f..63933c8 100644
--- a/examples/async.c
+++ b/examples/async.c
@@ -19,8 +19,6 @@
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
#include <unistd.h>
#include <getopt.h>
#include <ftdi.h>
@@ -30,7 +28,7 @@ int main(int argc, char **argv)
struct ftdi_context *ftdi;
int do_read = 0;
int do_write = 0;
- int i, f, retval;
+ int i, f, retval = EXIT_SUCCESS;
if ((ftdi = ftdi_new()) == 0)
{
hooks/post-receive
--
A library to talk to FTDI chips
--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|