[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] Warnings from *BSD
From: |
Hal Murray |
Subject: |
[gpsd-dev] Warnings from *BSD |
Date: |
Thu, 13 Jun 2019 14:04:03 -0700 |
We've been trying to add flags. Maybe we should be removing others we have
added?
I tried a simple test case. It worked. Did I set enough compiler warning
flags?
cc -O1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-o test test.c
#include <string.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
char foo[23];
strlcpy(foo, "foo", sizeof(foo));
printf("%s\n", foo);
return 0;
}
--
These are my opinions. I hate spam.
- [gpsd-dev] Warnings from *BSD,
Hal Murray <=