Changes between Version 4 and Version 5 of Developer/Coding/Deprecating
- Timestamp:
- 01/06/16 15:42:40 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Developer/Coding/Deprecating
v4 v5 6 6 7 7 == Use the deprecate attribute == 8 Add the RTEMS_COMPILER_DEPRECATED_ATTRIBUTE, which for gcc wraps the [https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html deprecated] attribute, to functions, structures, and global symbols exported by the deprecated interface. Update the doxygen for each of these with the @deprecated command, for example, 8 9 Add the RTEMS_COMPILER_DEPRECATED_ATTRIBUTE, which for gcc wraps the [https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-g_t_0040code_007bdeprecated_007d-function-attribute-3175 deprecated attribute], to functions, structures, and global symbols exported by the deprecated interface. Update the doxygen for each of these with the @deprecated command, for example: 10 9 11 {{{#!C 10 12 /** … … 16 18 17 19 == Add a warning for configured features in confdefs.h == 18 For features that are enabled or configured through confdefs.h, the feature should be disabled by default and a compile-time warning message should be printed, something along the lines of 20 21 For features that are enabled or configured through confdefs.h, the feature should be disabled by default and a compile-time warning message should be printed, something along the lines of: 22 19 23 {{{#!C 20 24 #warning "CONFIGURE_FEATURE_XXX\n\t\t\t**** Deprecated and will be removed. ****" 21 25 }}} 22 26 23 27 == Update documentation == 28 24 29 Find references to the deprecated feature in the user manuals (doc) and wiki, and make a note that the features are deprecated and may be removed. 25 30 26 31 == Update support code using deprecated feature == 32 27 33 If there is support code using the feature, you will need to modify that support code to not use that feature. If the code cannot be immediately modified, file a ticket on the issue and disable the deprecated warning. The code will need to be addressed before the feature can be removed. 28 34 … … 56 62 57 63 == Add a release note == 64 58 65 Add the feature to a list of deprecated interfaces in the release notes.