Skip to content
Snippets Groups Projects
Commit 76f63efc authored by Julien Malik's avatar Julien Malik
Browse files
parent c8fcb53a
No related branches found
No related tags found
No related merge requests found
......@@ -229,7 +229,7 @@ protected:
* \sa GenerateData(), SplitRequestedRegion() */
virtual
void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
int threadId ) ITK_NO_RETURN;
int threadId );
/** The GenerateData method normally allocates the buffers for all of the
......
......@@ -960,23 +960,6 @@ private:
# define ITK_TEMPLATE_EXPLICIT 0
#endif
//----------------------------------------------------------------------------
// Macro to declare that a function does not return. __attribute__((noreturn))
// On some compiler, functions that do not return (ex: exit(0)) must
// have the noreturn attribute. Otherwise, a warning is raised. Use
// that macro to avoid those warnings. GCC defines the attribute
// noreturn for versions 2.5 and higher.
#if defined(__GNUC__)
# if (((__GNUC__ == 2) && (__GNUC_MINOR__ >= 5)) || (__GNUC__ >= 3))
# define ITK_NO_RETURN \
__attribute__ ((noreturn))
# endif
#else
# define ITK_NO_RETURN
#endif
#ifdef ITK_USE_TEMPLATE_META_PROGRAMMING_LOOP_UNROLLING
//--------------------------------------------------------------------------------
// Helper macros for Template Meta-Programming techniques of for-loops unrolling
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment