Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
1d678bf7
Commit
1d678bf7
authored
Aug 13, 2014
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some noreturn attributes based on compiler recommendations
parent
faa14acc
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
contrib/test_shm_mq/test_shm_mq.h
contrib/test_shm_mq/test_shm_mq.h
+1
-1
contrib/worker_spi/worker_spi.c
contrib/worker_spi/worker_spi.c
+1
-1
src/include/bootstrap/bootstrap.h
src/include/bootstrap/bootstrap.h
+1
-1
src/include/parser/scanner.h
src/include/parser/scanner.h
+1
-1
src/include/postmaster/bgworker_internals.h
src/include/postmaster/bgworker_internals.h
+1
-1
No files found.
contrib/test_shm_mq/test_shm_mq.h
View file @
1d678bf7
...
@@ -40,6 +40,6 @@ extern void test_shm_mq_setup(int64 queue_size, int32 nworkers,
...
@@ -40,6 +40,6 @@ extern void test_shm_mq_setup(int64 queue_size, int32 nworkers,
shm_mq_handle
**
input
);
shm_mq_handle
**
input
);
/* Main entrypoint for a worker. */
/* Main entrypoint for a worker. */
extern
void
test_shm_mq_main
(
Datum
);
extern
void
test_shm_mq_main
(
Datum
)
__attribute__
((
noreturn
))
;
#endif
#endif
contrib/worker_spi/worker_spi.c
View file @
1d678bf7
...
@@ -46,7 +46,7 @@ PG_MODULE_MAGIC;
...
@@ -46,7 +46,7 @@ PG_MODULE_MAGIC;
PG_FUNCTION_INFO_V1
(
worker_spi_launch
);
PG_FUNCTION_INFO_V1
(
worker_spi_launch
);
void
_PG_init
(
void
);
void
_PG_init
(
void
);
void
worker_spi_main
(
Datum
);
void
worker_spi_main
(
Datum
)
__attribute__
((
noreturn
))
;
/* flags set by signal handlers */
/* flags set by signal handlers */
static
volatile
sig_atomic_t
got_sighup
=
false
;
static
volatile
sig_atomic_t
got_sighup
=
false
;
...
...
src/include/bootstrap/bootstrap.h
View file @
1d678bf7
...
@@ -57,6 +57,6 @@ extern void boot_get_type_io_data(Oid typid,
...
@@ -57,6 +57,6 @@ extern void boot_get_type_io_data(Oid typid,
extern
int
boot_yyparse
(
void
);
extern
int
boot_yyparse
(
void
);
extern
int
boot_yylex
(
void
);
extern
int
boot_yylex
(
void
);
extern
void
boot_yyerror
(
const
char
*
str
);
extern
void
boot_yyerror
(
const
char
*
str
)
__attribute__
((
noreturn
))
;
#endif
/* BOOTSTRAP_H */
#endif
/* BOOTSTRAP_H */
src/include/parser/scanner.h
View file @
1d678bf7
...
@@ -114,6 +114,6 @@ extern void scanner_finish(core_yyscan_t yyscanner);
...
@@ -114,6 +114,6 @@ extern void scanner_finish(core_yyscan_t yyscanner);
extern
int
core_yylex
(
core_YYSTYPE
*
lvalp
,
YYLTYPE
*
llocp
,
extern
int
core_yylex
(
core_YYSTYPE
*
lvalp
,
YYLTYPE
*
llocp
,
core_yyscan_t
yyscanner
);
core_yyscan_t
yyscanner
);
extern
int
scanner_errposition
(
int
location
,
core_yyscan_t
yyscanner
);
extern
int
scanner_errposition
(
int
location
,
core_yyscan_t
yyscanner
);
extern
void
scanner_yyerror
(
const
char
*
message
,
core_yyscan_t
yyscanner
);
extern
void
scanner_yyerror
(
const
char
*
message
,
core_yyscan_t
yyscanner
)
__attribute__
((
noreturn
))
;
#endif
/* SCANNER_H */
#endif
/* SCANNER_H */
src/include/postmaster/bgworker_internals.h
View file @
1d678bf7
...
@@ -46,7 +46,7 @@ extern void BackgroundWorkerStopNotifications(pid_t pid);
...
@@ -46,7 +46,7 @@ extern void BackgroundWorkerStopNotifications(pid_t pid);
extern
void
ResetBackgroundWorkerCrashTimes
(
void
);
extern
void
ResetBackgroundWorkerCrashTimes
(
void
);
/* Function to start a background worker, called from postmaster.c */
/* Function to start a background worker, called from postmaster.c */
extern
void
StartBackgroundWorker
(
void
);
extern
void
StartBackgroundWorker
(
void
)
__attribute__
((
noreturn
))
;
#ifdef EXEC_BACKEND
#ifdef EXEC_BACKEND
extern
BackgroundWorker
*
BackgroundWorkerEntry
(
int
slotno
);
extern
BackgroundWorker
*
BackgroundWorkerEntry
(
int
slotno
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment