Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix implicit function declarations with clang #382

Merged
merged 3 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AM_CPPFLAGS = @GLIB_CFLAGS@ -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" @PYTHON_INCLUDE@
AM_CFLAGS = @AM_CFLAGS@ @PTHREAD_CFLAGS@ @HAMLIB_CFLAGS@ @CURSES_CFLAGS@
AM_CFLAGS = @AM_CFLAGS@ @PTHREAD_CFLAGS@ @HAMLIB_CFLAGS@ @CURSES_CFLAGS@ -D_GNU_SOURCE

bin_PROGRAMS = tlf

Expand Down
7 changes: 0 additions & 7 deletions src/addcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@
* add call/band to dupe list
*
*--------------------------------------------------------------*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE
#endif

#include <stdlib.h>
#include <string.h>
Expand Down
4 changes: 0 additions & 4 deletions src/cabrillo_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
*--------------------------------------------------------------*/


#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Expand Down
3 changes: 0 additions & 3 deletions src/get_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
* All functions operate on UTC dates/times.
---------------------------------------------------------------------------*/

#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE
#endif
#include <time.h>
#include <string.h>

Expand Down
4 changes: 0 additions & 4 deletions src/log_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
*
---------------------------------------------------------------------------*/

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#include <ctype.h>
#include <glib.h>
#include <stdlib.h>
Expand Down
3 changes: 0 additions & 3 deletions src/readcabrillo.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE
#endif
#include <stdio.h>
#include <string.h>
#include <unistd.h>
Expand Down
3 changes: 0 additions & 3 deletions src/readcalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
*
*--------------------------------------------------------------*/

#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
4 changes: 0 additions & 4 deletions src/rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef _GNU_SOURCE
#define _GNU_SOURCE // For asprintf()
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down
5 changes: 0 additions & 5 deletions src/searchlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
*
*--------------------------------------------------------------*/

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif


#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
Expand Down
4 changes: 0 additions & 4 deletions src/writecabrillo.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
*--------------------------------------------------------------*/


#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down