summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/new_vec.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-05-01 10:00:07 +0200
committerTyge Løvset <[email protected]>2023-05-01 10:02:12 +0200
commitf916573e2b3652d9b3f6fb82aadd5f2cfb3ce2fe (patch)
tree22283c2d74f2cac441ce04b3106e144f440b8137 /misc/examples/new_vec.c
parent49e7d9cc0a888b0b19aa4e737d55a2bc33bec824 (diff)
downloadSTC-modified-f916573e2b3652d9b3f6fb82aadd5f2cfb3ce2fe.tar.gz
STC-modified-f916573e2b3652d9b3f6fb82aadd5f2cfb3ce2fe.zip
Remove warnings when using -Wextra.
Diffstat (limited to 'misc/examples/new_vec.c')
-rw-r--r--misc/examples/new_vec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/examples/new_vec.c b/misc/examples/new_vec.c
index df443b7f..d4b66883 100644
--- a/misc/examples/new_vec.c
+++ b/misc/examples/new_vec.c
@@ -4,10 +4,10 @@
forward_cvec(cvec_i32, int);
forward_cvec(cvec_pnt, struct Point);
-struct MyStruct {
+typedef struct MyStruct {
cvec_i32 intvec;
cvec_pnt pntvec;
-} typedef MyStruct;
+} MyStruct;
#define i_val int
#define i_is_forward